summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/Complex/mixed.cu
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Cuda/Complex/mixed.cu')
-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 429f1f3..a7bcd4e 100644
--- a/Tests/Cuda/Complex/mixed.cu
+++ b/Tests/Cuda/Complex/mixed.cu
@@ -38,5 +38,12 @@ EXPORT int mixed_launch_kernel(int x)
<< cudaGetErrorString(err) << std::endl;
return x;
}
+ err = cudaDeviceSynchronize();
+ if(err != cudaSuccess)
+ {
+ std::cerr << "mixed_kernel [ASYNC] failed: "
+ << cudaGetErrorString(cudaGetLastError()) << std::endl;
+ return x;
+ }
return r.sum;
}