From 64b42c2dc288bbdde39900a7d1a73c6976166815 Mon Sep 17 00:00:00 2001 From: James McClure Date: Mon, 7 Apr 2014 09:21:28 -0400 Subject: [PATCH] Adding updated configure script for titan --- sample_scripts/configure_titan_jem | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 sample_scripts/configure_titan_jem diff --git a/sample_scripts/configure_titan_jem b/sample_scripts/configure_titan_jem new file mode 100755 index 00000000..9bb5495c --- /dev/null +++ b/sample_scripts/configure_titan_jem @@ -0,0 +1,37 @@ +# 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 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 \ + /ccs/home/mcclurej/LBPM-WIA + + +# Build the code +make install -j 8 + + +# Run the fast tests +#ctest -E WEEKLY + + +# Run the slow tests +# ctest -R WEEKLY -VV