added test

This commit is contained in:
evghenii
2013-12-26 13:04:47 +01:00
parent 2f1008e2c3
commit 2621863d08
3 changed files with 757 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#!/bin/sh
nvcc -arch=sm_35 -dc kernel_ptx.cu -dryrun -Xptxas=-v 2>&1 | \
sed 's/\#\$//g'| \
awk '{if ($1=="cicc") {print $0; print "grep -ve \"\\.version\" -e \"\\.target\" -e \"\\.address_size\" ", $NF, " > __body.ptx"; print "cat __header.ptx __body.ptx >", $NF} else print $0}' > run1.sh