diff options
Diffstat (limited to 'Tests/Cuda/Complex/file3.cu')
-rw-r--r-- | Tests/Cuda/Complex/file3.cu | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Tests/Cuda/Complex/file3.cu b/Tests/Cuda/Complex/file3.cu index 3c5e952..47e64c5 100644 --- a/Tests/Cuda/Complex/file3.cu +++ b/Tests/Cuda/Complex/file3.cu @@ -11,8 +11,6 @@ static __global__ void file3_kernel(result_type& r, int x) { - //call static_func which is a method that is defined in the - //static library that is always out of date r = file1_func(x); result_type_dynamic rd = file2_func(x); } @@ -21,5 +19,11 @@ int file3_launch_kernel(int x) { result_type r; file3_kernel <<<1,1>>> (r,x); + cudaError_t err = cudaGetLastError(); + if(err == cudaSuccess) + { + std::cerr << cudaGetErrorString(err) << std::endl; + return x; + } return r.sum; } |