Salome HOME
spns #30249: add optional MPI_Fortran_COMPILER
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 13 Jun 2022 07:33:07 +0000 (09:33 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 13 Jun 2022 07:33:07 +0000 (09:33 +0200)
products/env_scripts/openmpi.py

index 2d85924a1da20bf5ea484f21bf2964356a9eaf0a..7eb0d67b06519c7898b285779e3f19452f907bfd 100644 (file)
@@ -12,6 +12,7 @@ def set_env(env, prereq_dir, version):
     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_Fortran_COMPILER', os.path.join(prereq_dir, 'bin', 'mpifort'))
     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_Fortran_COMPILER', os.path.join(prereq_dir, 'bin', 'mpifort'))
+    env.set('MPIEXEC_EXECUTABLE', os.path.join(prereq_dir, 'bin', 'mpiexec'))
     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'))
     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'))