From 24c364db1c64e5d92e2171f5dae5aeb4fc076f6b Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Thu, 10 Feb 2022 10:54:36 +0100 Subject: [PATCH] openmpi now OK. add MPI_C_COMPILER/MPI_CXX_COMPILER for non native builds --- products/env_scripts/openmpi.py | 2 ++ 1 file changed, 2 insertions(+) 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')) -- 2.39.2