From 06c6ed90b4a7347dce41ce00186401fbc4253cfd Mon Sep 17 00:00:00 2001 From: Ethan Stewart Date: Wed, 4 Nov 2020 20:48:34 -0600 Subject: [PATCH] build_qmcpack.sh - Fix error in BOOST_ROOT and FFTW_HOME. There was also an issue where returned false when running in a bash script, instead look for modules.sh --- bin/build_qmcpack.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/build_qmcpack.sh b/bin/build_qmcpack.sh index 1ba9daf9d..c86701f2f 100755 --- a/bin/build_qmcpack.sh +++ b/bin/build_qmcpack.sh @@ -41,16 +41,16 @@ thisdir=$(getdname $0) # --- end standard header ---- AOMP=${AOMP:-~/usr/lib/aomp} -where_module=`which module` -if [ $? == 0 ] ; then +if [ -e /etc/profile.d/modules.sh ] ; then + source /etc/profile.d/modules.sh # This script assumes modules setup on poplar cluster module load cmake module load gcc module load hdf5/1.10.1 module load openblas module load rocm-alt - BOOST_ROOT=${BOOST_ROOT:-/cm/shared/apps/fftw/openmpi/gcc/64/3.3.8} - FFTW_HOME=${FFTW_HOME:-/cm/shared/opt/boost/1.72.0} + BOOST_ROOT=${BOOST_ROOT:-/cm/shared/opt/boost/1.72.0} + FFTW_HOME=${FFTW_HOME:-/cm/shared/apps/fftw/openmpi/gcc/64/3.3.8} OPENMPI_INSTALL=${OPENMPI_INSTALL:-~/openmpi-4.0.3-install} export BOOST_ROOT FFTW_HOME else