Skip to content

Commit

Permalink
build_qmcpack.sh - Fix error in BOOST_ROOT and FFTW_HOME.
Browse files Browse the repository at this point in the history
There was also an issue where  returned false when running in a bash script, instead look for modules.sh
  • Loading branch information
estewart08 committed Nov 5, 2020
1 parent 4ad32f1 commit 06c6ed9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/build_qmcpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06c6ed9

Please sign in to comment.