From 77a2948c9cc68fb7217644d82725fcf7b59ae43c Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 19 Nov 2021 15:06:44 +0100 Subject: [PATCH] OPAL: review build-script --- MPI/OPAL/build | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/MPI/OPAL/build b/MPI/OPAL/build index 6e22c10..e960c91 100755 --- a/MPI/OPAL/build +++ b/MPI/OPAL/build @@ -9,11 +9,19 @@ pbuild::pre_configure_Linux() { fi } -# add -fopenmp to CC and CXX, if you want to compile with OpenMP pbuild::pre_configure() { pbuild::add_configure_args "-DCMAKE_BUILD_TYPE=Release" - pbuild::add_configure_args "-DENABLE_SAAMG_SOLVER=TRUE" - pbuild::add_configure_args "-DENABLE_AMR=TRUE" - pbuild::add_configure_args "-DENABLE_AMR_MG_SOLVER=TRUE" + if [[ $V == 2.2.1-1_slurm ]]; then + : + else + pbuild::add_configure_args "-DENABLE_SAAMG_SOLVER=TRUE" + pbuild::add_configure_args "-DENABLE_AMR=TRUE" + pbuild::add_configure_args "-DENABLE_AMR_MG_SOLVER=TRUE" + fi + if (( V_MAJOR >= 2021 )); then + pbuild::add_configure_args "-DBUILD_FOR_PRODUCTION=TRUE" + pbuild::add_configure_args "-DENABLE_BANDRF=TRUE" + pbuild::add_configure_args "-DENABLE_OPAL_FEL=TRUE" + fi }