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.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Cuda/Complex/file3.cu b/Tests/Cuda/Complex/file3.cu
index 47e64c5..0c8a09b 100644
--- a/Tests/Cuda/Complex/file3.cu
+++ b/Tests/Cuda/Complex/file3.cu
@@ -20,7 +20,7 @@ int file3_launch_kernel(int x)
result_type r;
file3_kernel <<<1,1>>> (r,x);
cudaError_t err = cudaGetLastError();
- if(err == cudaSuccess)
+ if(err != cudaSuccess)
{
std::cerr << cudaGetErrorString(err) << std::endl;
return x;