summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/Complex/file3.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Cuda/Complex/file3.cu')
-rw-r--r--Tests/Cuda/Complex/file3.cu7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/Cuda/Complex/file3.cu b/Tests/Cuda/Complex/file3.cu
index 1daf47e..912105a 100644
--- a/Tests/Cuda/Complex/file3.cu
+++ b/Tests/Cuda/Complex/file3.cu
@@ -26,5 +26,12 @@ int file3_launch_kernel(int x)
<< cudaGetErrorString(err) << std::endl;
return x;
}
+ err = cudaDeviceSynchronize();
+ if(err != cudaSuccess)
+ {
+ std::cerr << "file3_kernel [ASYNC] failed: "
+ << cudaGetErrorString(cudaGetLastError()) << std::endl;
+ return x;
+ }
return r.sum;
}