added compilation script for ptx
This commit is contained in:
6
ptxtestcc.sh
Executable file
6
ptxtestcc.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/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)
|
||||
Reference in New Issue
Block a user