From: Nabil Ghodbane Date: Thu, 10 Feb 2022 09:54:36 +0000 (+0100) Subject: openmpi now OK. add MPI_C_COMPILER/MPI_CXX_COMPILER for non native builds X-Git-Tag: V9_9_0~180 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24c364db1c64e5d92e2171f5dae5aeb4fc076f6b;p=tools%2Fsat_salome.git openmpi now OK. add MPI_C_COMPILER/MPI_CXX_COMPILER for non native builds --- diff --git a/products/env_scripts/openmpi.py b/products/env_scripts/openmpi.py index 17b6b14..392e857 100644 --- a/products/env_scripts/openmpi.py +++ b/products/env_scripts/openmpi.py @@ -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'))