Adding some sample build scripts
This commit is contained in:
parent
cb302f0bee
commit
d8427491c1
39
sample_scripts/configure_titan_mbt
Executable file
39
sample_scripts/configure_titan_mbt
Executable file
@ -0,0 +1,39 @@
|
||||
# Set the modules and enviornmental variables
|
||||
source $MODULESHOME/init/bash
|
||||
module load cudatoolkit
|
||||
module load cmake
|
||||
export MPICH_RDMA_ENABLED_CUDA=1
|
||||
module swap cray-mpich2 cray-mpich2/5.6.3
|
||||
|
||||
|
||||
# Remove CMake files from previous configures
|
||||
rm -rf CMake*
|
||||
|
||||
|
||||
# Configure
|
||||
cmake \
|
||||
-D CMAKE_C_COMPILER:PATH=cc \
|
||||
-D CMAKE_CXX_COMPILER:PATH=CC \
|
||||
-D CMAKE_CXX_COMPILER:PATH=CC \
|
||||
-D CMAKE_C_FLAGS="-DCBUB" \
|
||||
-D CMAKE_CXX_FLAGS="-DCBUB" \
|
||||
-D MPI_COMPILER:BOOL=TRUE \
|
||||
-D MPIEXEC=aprun \
|
||||
-D USE_EXT_MPI_FOR_SERIAL_TESTS:BOOL=TRUE \
|
||||
-D CMAKE_BUILD_TYPE:STRING=Debug \
|
||||
-D CUDA_FLAGS="-arch sm_35" \
|
||||
-D CUDA_HOST_COMPILER="/usr/bin/gcc" \
|
||||
-D USE_CUDA=1 \
|
||||
../../LBPM-WIA
|
||||
|
||||
|
||||
# Build the code
|
||||
make install -j 8
|
||||
|
||||
|
||||
# Run the fast tests
|
||||
ctest -E WEEKLY
|
||||
|
||||
|
||||
# Run the slow tests
|
||||
# ctest -R WEEKLY -VV
|
16
sample_scripts/load_modules_mbt
Executable file
16
sample_scripts/load_modules_mbt
Executable file
@ -0,0 +1,16 @@
|
||||
# Clear all modules (except modules)
|
||||
for var in ${LOADEDMODULES//:/ }; do if [ " ${var///*/}" != " modules" ]; then module unload " ${var///*/}" > /dev/null 2>&1; fi; done
|
||||
|
||||
# Load basic enviornment/compilers
|
||||
module load PrgEnv-gnu
|
||||
module unload cray-libsci
|
||||
# module load PrgEnv-pgi
|
||||
|
||||
# Load repos
|
||||
module load cray-mpich ugni xpmem udreg
|
||||
module load moab torque
|
||||
module load mercurial
|
||||
module load cmake
|
||||
# module load libsci_acc
|
||||
module load acml
|
||||
|
Loading…
Reference in New Issue
Block a user