freetype : '2.9.1'
gcc : '8.5.0'
mpc : 'native'
+ mpi4py: '3.0.3'
gmp : 'native'
mpfr : 'native'
gmsh : '4.8.4'
omniORB : '4.2.2'
omniORBpy : '4.2.2'
opencv : '3.2.0'
+ openmpi : '3.1.6'
openturns: '1.17'
openVKL: '0.11.0'
ospray : '2.4.0'
__condition__ : "VARS.dist not in ['DB08','DB09', 'FD30']"
'APPLICATION.rm_products' : ['gcc', 'gmp', 'mpc', 'mpfr']
}
+ {
+ __condition__ : "VARS.dist in ['DB09']"
+ 'APPLICATION.products.hdf5' : {tag:'1.10.3', base: 'no', section: 'version_1_10_3', hpc: 'yes'}
+ 'APPLICATION.products.cgns' : {tag:'4.1.1', base: 'no', section: 'default', hpc: 'yes'}
+ 'APPLICATION.products.ParaView' : {tag:'5.9.0', base: 'no', section: 'version_5_9_0_MPI', hpc: 'yes'}
+ 'APPLICATION.products.MeshGems' : {tag:'2.14-1', base: 'no', section: 'version_2_14_1', hpc: 'yes'}
+ 'APPLICATION.products.PARAVIS' : {tag:'master', base: 'no', section: 'default_MPI', hpc: 'yes'}
+ 'APPLICATION.products.MEDCOUPLING' : {tag:'master', base: 'no', section: 'default_MPI', hpc: 'yes'}
+ }
+ {
+ __condition__ : "VARS.dist not in ['DB09']"
+ 'APPLICATION.rm_products' : ['openmpi', 'mpi4py']
+ }
+
]
CMAKE_OPTIONS+=" -DHDF5_ENABLE_PARALLEL:BOOL=ON"
CMAKE_OPTIONS+=" -DHDF5_BUILD_CPP_LIB:BOOL=ON"
CMAKE_OPTIONS+=" -DHDF5_BUILD_TOOLS:BOOL=ON"
+ export CC=$(which mpicc)
+ export CXX=$(which mpic++)
else
CMAKE_OPTIONS+=" -DHDF5_ENABLE_PARALLEL:BOOL=OFF"
CMAKE_OPTIONS+=" -DHDF5_BUILD_CPP_LIB:BOOL=ON"
env.prepend('C_INCLUDE_PATH', os.path.join(root, 'include')) # needed for parallel h5py
def set_nativ_env(env):
- env.set('MPI_ROOT_DIR', "/usr") # update for cmake
- env.set('OPENMPIDIR', "/usr")
- env.set('MPI_ROOT', "/usr")
-
-
+ prereq_dir='/usr'
+ try:
+ import distro
+ if any(distribution in distro.name().lower() for distribution in ["centos", "fedora"]) :
+ prereq_dir='/usr/lib64/openmpi'
+ except:
+ import platform
+ if any(distribution in platform.linux_distribution()[0].lower() for distribution in ["centos", "fedora"]) :
+ prereq_dir='/usr/lib64/openmpi'
+ env.set('MPI_ROOT_DIR', prereq_dir)
+ env.set('OPENMPIDIR', prereq_dir)
+ env.set('MPI_ROOT', prereq_dir)
+ env.prepend('PATH', os.path.join(prereq_dir, 'bin'))
+ env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir,'lib'))
build_source : "script"
compil_script : $name + ".sh"
get_source : "archive"
+ system_info :
+ {
+ rpm : ["openmpi"]
+ rpm_dev : ["openmpi-devel"]
+ apt : ["libopenmpi2"]
+ apt_dev : ["libopenmpi-dev"]
+ }
environ :
{
env_script : $name + ".py"
source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
install_dir : 'base'
-}
\ No newline at end of file
+}