Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (14 sloc) 532 Bytes
#!/bin/bash
set -e
echo "This script will do an out-of-tree build of ParTI into the 'build' directory."
# If you have GCC >= 6.0 and CUDA <= 8.0,
# write this into 'build.config': -DCUDA_HOST_COMPILER=gcc-5
# You can also write other configuation flags into 'build.config'
declare -a CMAKE_FLAGS
[ -e build.config ] && CMAKE_FLAGS=("${CMAKE_FLAGS[@]}" $(<build.config))
CMAKE_FLAGS=("${CMAKE_FLAGS[@]}" "$@")
mkdir -p build
cd build
cmake "${CMAKE_FLAGS[@]}" ..
make
echo "Finished. Check the 'build' directory for results."