Updated Titan /Eos build scripts

This commit is contained in:
James E McClure 2017-05-14 16:00:32 -04:00
parent ac797709ce
commit efdc0fa000
2 changed files with 13 additions and 2 deletions

View File

@ -2,7 +2,10 @@
#for var in ${LOADEDMODULES//:/ }; do if [ " ${var///*/}" != " modules" ]; then module unload " ${var///*/}" > /dev/null 2>&1; fi; done #for var in ${LOADEDMODULES//:/ }; do if [ " ${var///*/}" != " modules" ]; then module unload " ${var///*/}" > /dev/null 2>&1; fi; done
source $MODULESHOME/init/bash source $MODULESHOME/init/bash
module swap PrgEnv-intel PrgEnv-gnu module unload PrgEnv-intel
module load PrgEnv-gnu
module unload gcc
module load gcc/5.3.0
module load cray-hdf5-parallel module load cray-hdf5-parallel
module load cray-netcdf-hdf5parallel module load cray-netcdf-hdf5parallel
@ -18,6 +21,9 @@ module load cmake
export MPICH_RDMA_ENABLED_CUDA=0 export MPICH_RDMA_ENABLED_CUDA=0
echo $GNU_VERSION
module list
# Remove CMake files from previous configures # Remove CMake files from previous configures
rm -rf CMake* rm -rf CMake*
@ -39,9 +45,10 @@ cmake \
-D USE_NETCDF=1 \ -D USE_NETCDF=1 \
-D NETCDF_DIRECTORY=$NETCDF_DIR \ -D NETCDF_DIRECTORY=$NETCDF_DIR \
-D HDF5_DIRECTORY=$HDF5_DIR \ -D HDF5_DIRECTORY=$HDF5_DIR \
-D PREFIX=$MEMBERWORK/geo106/eos-LBPM-WIA \
~/LBPM-WIA ~/LBPM-WIA
# -D PREFIX=$MEMBERWORK/geo106/eos-LBPM-WIA \
#-D CUDA_HOST_COMPILER="/usr/bin/gcc" \ #-D CUDA_HOST_COMPILER="/usr/bin/gcc" \

View File

@ -5,6 +5,7 @@ module load cmake
export MPICH_RDMA_ENABLED_CUDA=1 export MPICH_RDMA_ENABLED_CUDA=1
#module swap cray-mpich2 cray-mpich2/5.6.3 #module swap cray-mpich2 cray-mpich2/5.6.3
module swap PrgEnv-pgi PrgEnv-gnu module swap PrgEnv-pgi PrgEnv-gnu
module load cray-hdf5 silo
# Remove CMake files from previous configures # Remove CMake files from previous configures
rm -rf CMake* rm -rf CMake*
@ -21,6 +22,9 @@ cmake \
-D CMAKE_BUILD_TYPE:STRING=Release \ -D CMAKE_BUILD_TYPE:STRING=Release \
-D CXX_STD=11 \ -D CXX_STD=11 \
-D CUDA_FLAGS="-arch sm_35" \ -D CUDA_FLAGS="-arch sm_35" \
-D USE_SILO=0 \
-D SILO_DIRECTORY=/sw/xk6/silo/4.8/sles11.1_gnu4.5.3 \
-D HDF5_DIRECTORY=/opt/cray/hdf5/1.8.16/GNU/4.9 \
-D CUDA_HOST_COMPILER="/usr/bin/gcc" \ -D CUDA_HOST_COMPILER="/usr/bin/gcc" \
-D USE_CUDA=1 \ -D USE_CUDA=1 \
-D USE_TIMER=0 \ -D USE_TIMER=0 \