]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
openmpi now OK. add MPI_C_COMPILER/MPI_CXX_COMPILER for non native builds
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 10 Feb 2022 09:54:36 +0000 (10:54 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 10 Feb 2022 09:54:36 +0000 (10:54 +0100)
products/env_scripts/openmpi.py

index 17b6b1475ec87b2970e46cd63cbe86f7ca78d6f1..392e857b3ea6b0c3264f945060fa1350630dbeaf 100644 (file)
@@ -8,6 +8,8 @@ def set_env(env, prereq_dir, version):
     env.set('OPAL_PREFIX', prereq_dir) # be able to move openmpi install (packages)
     env.set('MPI_ROOT_DIR', prereq_dir)  # update for cmake  
     env.set('MPI_ROOT', prereq_dir)
+    env.set('MPI_C_COMPILER', os.path.join(prereq_dir, 'bin', 'mpicc'))
+    env.set('MPI_CXX_COMPILER', os.path.join(prereq_dir, 'bin', 'mpicxx'))
     env.set('MPI_C_FOUND', os.path.join(prereq_dir,'lib','libmpi.so'))
     env.prepend('PATH', os.path.join(prereq_dir, 'bin'))
     env.prepend('PATH', os.path.join(prereq_dir, 'include'))