diff options
author | Pierre Moreau <dev@pmoreau.org> | 2017-02-02 12:40:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-10 18:46:06 (GMT) |
commit | 84f3c87b030037646c1110b1e4237f597ad3dd88 (patch) | |
tree | 47158e6939d0eb4ec2ae634384ec4b4db4c75be8 /Tests/Cuda/Complex/file3.cu | |
parent | ee3295e91740033ebe9d9a0c800c0a3070108624 (diff) | |
download | CMake-84f3c87b030037646c1110b1e4237f597ad3dd88.zip CMake-84f3c87b030037646c1110b1e4237f597ad3dd88.tar.gz CMake-84f3c87b030037646c1110b1e4237f597ad3dd88.tar.bz2 |
Tests/Cuda: Print error message if an error occurred
Fixes c59811a2 "CUDA: Tests now state why they are failing when no CUDA card is found."
Diffstat (limited to 'Tests/Cuda/Complex/file3.cu')
-rw-r--r-- | Tests/Cuda/Complex/file3.cu | 2 |
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; |