summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Cuda')
-rw-r--r--Tests/Cuda/Complex/mixed.cu7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/Cuda/Complex/mixed.cu b/Tests/Cuda/Complex/mixed.cu
index 7051de0..429f1f3 100644
--- a/Tests/Cuda/Complex/mixed.cu
+++ b/Tests/Cuda/Complex/mixed.cu
@@ -31,5 +31,12 @@ EXPORT int mixed_launch_kernel(int x)
result_type r;
mixed_kernel <<<1,1>>> (r,x);
+ cudaError_t err = cudaGetLastError();
+ if(err != cudaSuccess)
+ {
+ std::cerr << "mixed_kernel [SYNC] failed: "
+ << cudaGetErrorString(err) << std::endl;
+ return x;
+ }
return r.sum;
}