added basic support for nvptx target

This commit is contained in:
Evghenii
2014-01-10 08:47:59 +01:00
parent 84134678dc
commit 8190869714
2 changed files with 33 additions and 1 deletions

9
nvptxcc Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
PTXCC=ptxcc
ARGS=${@:2}
$($PTXCC $1 -o $1.o) && \
$(nvcc test_static_nvptx.cpp examples_ptx/nvcc_helpers.cu examples_ptx/ispc_malloc.cpp $1.o -arch=sm_35 -Iexamples_ptx/ -D_CUDA_ -lcudadevrt $ARGS)