Bug #788: fix out of tree CUDA build
[charm.git] / src / arch / net-linux-x86_64 / special.sh
blob266b9b6d06aa34cc1c8972866ef5ff20aa4b22c7
1 #!/bin/sh
3 export CHARMINC=../include
4 . ./conv-config.sh
6 if test -n "$BUILD_CUDA"
7 then
8 echo "---------------------- special.sh for cuda executing ----------------"
10 ./gathertree $SRCBASE/arch/cuda .
12 # make links
13 test ! -f "../include/cuda-hybrid-api.h" && ./system_ln "../tmp/hybridAPI/cuda-hybrid-api.h" ../include && test ! -f "../include/wr.h" && ./system_ln "../tmp/hybridAPI/wr.h" ../include && test ! -f "../include/wrqueue.h" && ./system_ln "../tmp/hybridAPI/wrqueue.h" ../include
15 #make library
16 export CHARMINC=../include
17 . ./conv-config.sh