Files
ispc/ptxtestcc.sh
2014-01-06 17:02:26 +01:00

11 lines
368 B
Bash
Executable File

#!/bin/sh
LLC=$HOME/usr/local/llvm/bin-trunk/bin/llc
ISPC=ispc
PTXCC=ptxcc
$(cat $1 |grep -v 'width'|$ISPC --target=nvptx --emit-llvm -o -|$LLC -march=nvptx64 -mcpu=sm_35 -o $1.ptx)
$($PTXCC $1.ptx -Xptxas=-v -o $1.ptx.o)
nvcc -o test_nvptx test_static_nvptx.cpp examples_ptx/nvcc_helpers.cu $1.ptx.o -arch=sm_35 -Iexamples_ptx/ -D_CUDA_ -lcudadevrt -DTEST_SIG=$2