From 277fd2f8ebf62e11a8dd35cccb880e51b7433e67 Mon Sep 17 00:00:00 2001 From: Evghenii Date: Mon, 6 Jan 2014 17:02:26 +0100 Subject: [PATCH] +retire for today --- ptxtestcc.sh | 4 ++++ test_static_nvptx.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ptxtestcc.sh b/ptxtestcc.sh index de731d95..fee3d856 100755 --- a/ptxtestcc.sh +++ b/ptxtestcc.sh @@ -4,3 +4,7 @@ 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 + + + diff --git a/test_static_nvptx.cpp b/test_static_nvptx.cpp index 7239dcb2..fb23413f 100644 --- a/test_static_nvptx.cpp +++ b/test_static_nvptx.cpp @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) { float *vfloat = new float[64]; double *vdouble = new double[64]; int *vint = new int[64]; - int *vint2 = new int2[64]; + int *vint2 = new int[64]; for (int i = 0; i < 64; ++i) { returned_result[i] = -1e20;