Skip to content

Instantly share code, notes, and snippets.

@sithhell
Created September 1, 2017 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sithhell/27e27d464076b81f0050463458b76483 to your computer and use it in GitHub Desktop.
Save sithhell/27e27d464076b81f0050463458b76483 to your computer and use it in GitHub Desktop.
[21:28:24]:heller@daint101:/scratch/snx1600/heller/build/daint-cuda/release/hpx:0:$ cat config.sh
#!/bin/sh
rm -rf `ls | grep -v config.sh | grep -v *.supp`
CC=/users/biddisco/apps/daint/llvm/bin/clang++
FLAGS="--cuda-path=$CUDATOOLKIT_HOME \
-L$CUDATOOLKIT_HOME/lib64 \
-L$CUDATOOLKIT_HOME/extras/CUPTI/lib64 \
-Wl,--as-needed -Wl,-lcupti -Wl,-lcudart -Wl,--no-as-needed \
-L/opt/cray/nvidia/default/lib64 \
-L/opt/cray/nvidia/default/lib64 \
-lcuda"
HWLOC_ROOT=/apps/common/UES/jenkins/SLES12/easybuild/software/hwloc/1.11.5/
JEMALLOC_ROOT=/users/biddisco/apps/daint/jemalloc/4.5.0/
BOOST_ROOT=$SCRATCH/boost-daint-clang
cmake $HOME/hpx \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER=$CC \
-DCMAKE_CXX_FLAGS="$FLAGS" \
-DHPX_WITH_CUDA=On \
-DHPX_WITH_CUDA_CLANG=On \
-DHWLOC_ROOT=$HWLOC_ROOT \
-DHPX_MALLOC=jemalloc \
-DJEMALLOC_ROOT=$JEMALLOC_ROOT
[21:28:28]:heller@daint101:/scratch/snx1600/heller/build/daint-cuda/release/hpx:0:$ ./config.sh && make -j8
-- The CXX compiler identification is Clang 6.0.0
-- The C compiler identification is Clang 6.0.0
-- Check for working CXX compiler: /users/biddisco/apps/daint/llvm/bin/clang++
-- Check for working CXX compiler: /users/biddisco/apps/daint/llvm/bin/clang++ -- works
-- Detecting CXX compiler ABI info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment