From 04118d496542152e4d221c3fea99f00a71fe5743 Mon Sep 17 00:00:00 2001 From: Evghenii Date: Thu, 20 Feb 2014 11:56:21 +0100 Subject: [PATCH] +fix for .b0 in tests --- ptxtools/runtest_ptxcc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ptxtools/runtest_ptxcc.sh b/ptxtools/runtest_ptxcc.sh index d1d64dbd..5edbff22 100755 --- a/ptxtools/runtest_ptxcc.sh +++ b/ptxtools/runtest_ptxcc.sh @@ -13,7 +13,8 @@ then $($PTXCC $TMPDIR/$fbname.ptx -o $TMPDIR/$fbname.o -Xnvcc="-G") && \ $(nvcc test_static_nvptx.cpp examples/nvcc_helpers.cu examples/ispc_malloc.cpp $TMPDIR/$fbname.o -arch=sm_35 -Iexamples/ -D_CUDA_ -lcudadevrt $ARGS); else - $($PTXCC $1 -o $TMPDIR/$fbname.o -Xnvcc="-G") && \ + $(sed 's/\.b0/\.b32/g' $1 > $TMPDIR/$fbname) && \ + $($PTXCC $TMPDIR/$fbname -o $TMPDIR/$fbname.o -Xnvcc="-G") && \ $(nvcc test_static_nvptx.cpp examples/nvcc_helpers.cu examples/ispc_malloc.cpp $TMPDIR/$fbname.o -arch=sm_35 -Iexamples/ -D_CUDA_ -lcudadevrt $ARGS); fi