-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgen-ptx.sh
executable file
·20 lines (13 loc) · 1.86 KB
/
gen-ptx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PATH="$PATH:/Developer/NVIDIA/CUDA-5.5/bin/"
if [ `uname` == Darwin ]; then
NVCC_OPTS="-gencode arch=compute_30,code=sm_30 -ccbin /usr/bin/llvm-g++-4.2 $NVCC_OPTS"
fi
nvcc $NVCC_OPTS -D TYPE=float -I src/main/resources/gust/linalg/cuda/ --ptx src/main/resources/gust/linalg/cuda/matrix_kernels_float.cu -o src/main/resources/gust/linalg/cuda/matrix_kernels_float.ptx
nvcc $NVCC_OPTS -D TYPE=double -I src/main/resources/gust/linalg/cuda/ --ptx src/main/resources/gust/linalg/cuda/matrix_kernels_float.cu -o src/main/resources/gust/linalg/cuda/matrix_kernels_double.ptx
nvcc $NVCC_OPTS -D TYPE=float -I src/main/resources/gust/linalg/cuda/ --ptx src/main/resources/gust/linalg/cuda/vector_kernels_float.cu -o src/main/resources/gust/linalg/cuda/vector_kernels_float.ptx
nvcc $NVCC_OPTS -D TYPE=double -I src/main/resources/gust/linalg/cuda/ --ptx src/main/resources/gust/linalg/cuda/elemWiseDouble.cu -o src/main/resources/gust/linalg/cuda/elemWiseDouble.ptx
nvcc $NVCC_OPTS -D TYPE=float -I src/main/resources/gust/linalg/cuda/ --ptx src/main/resources/gust/linalg/cuda/elemWiseFloat.cu -o src/main/resources/gust/linalg/cuda/elemWiseFloat.ptx
nvcc $NVCC_OPTS -D TYPE=double -I src/main/resources/gust/linalg/cuda/ --ptx src/main/resources/gust/linalg/cuda/enforceLUFloat.cu -o src/main/resources/gust/linalg/cuda/enforceLUFloat.ptx
nvcc $NVCC_OPTS -D TYPE=float -I src/main/resources/gust/linalg/cuda/ --ptx src/main/resources/gust/linalg/cuda/enforceLUDouble.cu -o src/main/resources/gust/linalg/cuda/enforceLUDouble.ptx
nvcc $NVCC_OPTS -D TYPE=double -I src/main/resources/gust/linalg/cuda/ --ptx src/main/resources/gust/linalg/cuda/reduceFloat.cu -o src/main/resources/gust/linalg/cuda/reduceFloat.ptx
nvcc $NVCC_OPTS -D TYPE=float -I src/main/resources/gust/linalg/cuda/ --ptx src/main/resources/gust/linalg/cuda/reduceDouble.cu -o src/main/resources/gust/linalg/cuda/reduceDouble.ptx