diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2019-11-15 22:11:37 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2019-11-15 22:11:37 (GMT) |
commit | a3dfff380f12fc39bea5e18d8470b9e0707cdb40 (patch) | |
tree | 83171f390a754a668a652475a023953367ff670f /.gitlab/nnsa.sh | |
parent | 176299df9bd4e21bb2c0dcd7d85b0ce7532f5564 (diff) | |
download | hdf5-a3dfff380f12fc39bea5e18d8470b9e0707cdb40.zip hdf5-a3dfff380f12fc39bea5e18d8470b9e0707cdb40.tar.gz hdf5-a3dfff380f12fc39bea5e18d8470b9e0707cdb40.tar.bz2 |
Revert to use module gcc/8.3.0.
Diffstat (limited to '.gitlab/nnsa.sh')
-rw-r--r-- | .gitlab/nnsa.sh | 49 |
1 files changed, 18 insertions, 31 deletions
diff --git a/.gitlab/nnsa.sh b/.gitlab/nnsa.sh index 9963be8..d1ca0a3 100644 --- a/.gitlab/nnsa.sh +++ b/.gitlab/nnsa.sh @@ -183,8 +183,7 @@ elif [[ $UNAME == p90* ]]; then # module load mpi/openmpi3-ppc64le MASTER_MOD="openmpi" - CC_VER=(1 gcc) -#CC_VER=(1 gcc/8.3.0) + CC_VER=(1 gcc/8.3.0) CTEST_OPTS="$CTEST_OPTS" _CC=mpicc @@ -271,44 +270,32 @@ for master_mod in $MASTER_MOD; do module load $master_mod # Load the master module - if [[ $icnt -gt 0 ]]; then - icnt=$(($icnt+1)) - COMPILER_TYPE=`echo ${CC_VER[icnt]} | sed 's/\/.*//'` - module unload ${COMPILER_TYPE} # unload the general compiler type - - for i in `seq 1 $num_CC`; do # loop over compiler versions - cc_ver=${CC_VER[$icnt]} # compiler version - rm -fr build - - module load $cc_ver # load the compiler with version - module load $master_mod - - export CC=$_CC - export FC=$_FC - export CXX=$_CXX - - module list - - echo "timeout 3h ctest . -S HDF5config.cmake,SITE_BUILDNAME_SUFFIX=\"$HDF5_VER-$master_mod-$cc_ver\",${CTEST_OPTS}MPI=true,BUILD_GENERATOR=Unix,LOCAL_SUBMIT=true,MODEL=HPC -C Release -V -O hdf5.log" - timeout 3h ctest . -S HDF5config.cmake,SITE_BUILDNAME_SUFFIX="$HDF5_VER-$master_mod-$cc_ver",${CTEST_OPTS}MPI=true,BUILD_GENERATOR=Unix,LOCAL_SUBMIT=true,MODEL=HPC -C Release -V -O hdf5.log + icnt=$(($icnt+1)) + COMPILER_TYPE=`echo ${CC_VER[icnt]} | sed 's/\/.*//'` + module unload ${COMPILER_TYPE} # unload the general compiler type - module unload $cc_ver # unload the compiler with version + for i in `seq 1 $num_CC`; do # loop over compiler versions + cc_ver=${CC_VER[$icnt]} # compiler version + rm -fr build - icnt=$(($icnt+1)) + module load $cc_ver # load the compiler with version + module load $master_mod - #rm -fr build - done - else export CC=$_CC export FC=$_FC export CXX=$_CXX module list - module avail gcc - $cc_ver="mpicc" + echo "timeout 3h ctest . -S HDF5config.cmake,SITE_BUILDNAME_SUFFIX=\"$HDF5_VER-$master_mod-$cc_ver\",${CTEST_OPTS}MPI=true,BUILD_GENERATOR=Unix,LOCAL_SUBMIT=true,MODEL=HPC -C Release -V -O hdf5.log" - timeout 3h ctest . -S HDF5config.cmake,SITE_BUILDNAME_SUFFIX="$HDF5_VER-$master_mod-$cc_ver",${CTEST_OPTS}MPI=true,BUILD_GENERATOR=Unix,LOCAL_SUBMIT=true,MODEL=HPC -C Release -V -O hdf5.log - fi + timeout 3h ctest . -S HDF5config.cmake,SITE_BUILDNAME_SUFFIX="$HDF5_VER-$master_mod-$cc_ver",${CTEST_OPTS}MPI=true,BUILD_GENERATOR=Unix,LOCAL_SUBMIT=true,MODEL=HPC -C Release -V -O hdf5.log + + module unload $cc_ver # unload the compiler with version + + icnt=$(($icnt+1)) + + #rm -fr build + done module unload $master_mod #unload master module done |