From 3852436a74bfa2f88a5e767d18039dba7b471245 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Mon, 17 Jan 2022 11:02:54 +0100 Subject: [PATCH] spns #19079 apply topo-ii-vol sha 9db88dd to tag 1.3.0 --- products/compil_scripts/topo2volmesh-1.3.0.sh | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/products/compil_scripts/topo2volmesh-1.3.0.sh b/products/compil_scripts/topo2volmesh-1.3.0.sh index db9c570..442ce81 100755 --- a/products/compil_scripts/topo2volmesh-1.3.0.sh +++ b/products/compil_scripts/topo2volmesh-1.3.0.sh @@ -10,19 +10,25 @@ then echo "WARNING: setting CC and CXX environment variables and target MPI wrapper" export CC=${MPI_ROOT_DIR}/bin/mpicc export CXX=${MPI_ROOT_DIR}/bin/mpicxx + CONFIGURE_FLAGS+=" --with-MPICXX=${MPI_ROOT_DIR}/bin/mpic++" else - if [[ $DIST_NAME == "CO" && $DIST_VERSION == "7" ]]; then - # check whether openmpi is installed - x=$(yum list installed |grep openmpi) - if [ $? -ne 0 ]; then - echo "ERROR: openMPI is not installed!" - exit 1 - fi - export CC=/usr/lib64/openmpi/bin/mpicc - export CXX=/usr/lib64/openmpi/bin/mpicxx - export PATH=$PATH:/usr/lib64/openmpi/bin - CONFIGURE_FLAGS+=" --with-MPICXX=/usr/lib64/openmpi/bin/mpic++" - fi + LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + case $LINUX_DISTRIBUTION in + CO7|CO8|FD30|FD32|FD34) + # check whether openmpi is installed + x=$(yum list installed |grep openmpi) + if [ $? -ne 0 ]; then + echo "ERROR: openMPI is not installed!" + exit 1 + fi + export CC=/usr/lib64/openmpi/bin/mpicc + export CXX=/usr/lib64/openmpi/bin/mpicxx + export PATH=$PATH:/usr/lib64/openmpi/bin + CONFIGURE_FLAGS+=" --with-MPICXX=/usr/lib64/openmpi/bin/mpic++" + ;; + *) + ;; + esac fi rm -rf $BUILD_DIR -- 2.39.2