LBPM/sample_scripts/config_build_eos

57 lines
1.5 KiB
Plaintext
Raw Normal View History

2014-05-12 08:30:54 -05:00
# Clear all modules (except modules)
#for var in ${LOADEDMODULES//:/ }; do if [ " ${var///*/}" != " modules" ]; then module unload " ${var///*/}" > /dev/null 2>&1; fi; done
2014-05-12 08:30:54 -05:00
source $MODULESHOME/init/bash
module swap PrgEnv-intel PrgEnv-gnu
module load cray-hdf5-parallel
module load cray-netcdf-hdf5parallel
2014-05-12 08:30:54 -05:00
# Set the modules and enviornmental variables
#module load DefApps
#module load PrgEnv-intel
#module unload cray-libsci
#module load cray-mpich ugni xpmem udreg altd
#module load moab torque
2014-05-12 08:30:54 -05:00
module load mercurial git
module load cmake
export MPICH_RDMA_ENABLED_CUDA=0
# Remove CMake files from previous configures
rm -rf CMake*
# Configure
cmake \
-D CMAKE_BUILD_TYPE:STRING=Release \
-D CMAKE_C_COMPILER:PATH=cc \
-D CMAKE_CXX_COMPILER:PATH=CC \
-D CMAKE_CXX_COMPILER:PATH=CC \
-D MPI_COMPILER:BOOL=TRUE \
-D MPIEXEC=aprun \
-D USE_EXT_MPI_FOR_SERIAL_TESTS:BOOL=TRUE \
-D USE_CUDA=0 \
-D CUDA_FLAGS="-arch sm_35" \
-D USE_NETCDF=1 \
-D NETCDF_DIRECTORY=$NETCDF_DIR \
-D HDF5_DIRECTORY=$HDF5_DIR \
-D PREFIX=$MEMBERWORK/geo106/eos-LBPM-WIA \
~/LBPM-WIA
2014-05-12 08:30:54 -05:00
#-D CUDA_HOST_COMPILER="/usr/bin/gcc" \
# Build the code
make install -j 8
# Fix permissions
#chmod -R g+w $PROJWORK/geo106/eos-LBPM-WIA
2014-05-12 08:30:54 -05:00
# Run the fast tests
# ctest -E WEEKLY
# Run the slow tests
# ctest -R WEEKLY -VV