diff options
author | Pierre Moreau <dev@pmoreau.org> | 2017-02-02 22:22:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-10 18:46:06 (GMT) |
commit | eebb2be8b0db17bb5f760e7fa04c020406e6f6eb (patch) | |
tree | 06c86c0cef60bf04220979803e134088b40aca7e /Tests/Cuda | |
parent | 84f3c87b030037646c1110b1e4237f597ad3dd88 (diff) | |
download | CMake-eebb2be8b0db17bb5f760e7fa04c020406e6f6eb.zip CMake-eebb2be8b0db17bb5f760e7fa04c020406e6f6eb.tar.gz CMake-eebb2be8b0db17bb5f760e7fa04c020406e6f6eb.tar.bz2 |
Tests/Cuda: Add identifiers to error messages
Diffstat (limited to 'Tests/Cuda')
-rw-r--r-- | Tests/Cuda/Complex/dynamic.cu | 3 | ||||
-rw-r--r-- | Tests/Cuda/Complex/file3.cu | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Tests/Cuda/Complex/dynamic.cu b/Tests/Cuda/Complex/dynamic.cu index b0a27d4..fc22c8b 100644 --- a/Tests/Cuda/Complex/dynamic.cu +++ b/Tests/Cuda/Complex/dynamic.cu @@ -28,6 +28,7 @@ EXPORT void cuda_dynamic_lib_func() cudaError_t err = cudaGetLastError(); if(err != cudaSuccess) { - std::cerr << cudaGetErrorString(err) << std::endl; + std::cerr << "DetermineIfValidCudaDevice [SYNC] failed: " + << cudaGetErrorString(err) << std::endl; } } diff --git a/Tests/Cuda/Complex/file3.cu b/Tests/Cuda/Complex/file3.cu index 0c8a09b..1daf47e 100644 --- a/Tests/Cuda/Complex/file3.cu +++ b/Tests/Cuda/Complex/file3.cu @@ -22,7 +22,8 @@ int file3_launch_kernel(int x) cudaError_t err = cudaGetLastError(); if(err != cudaSuccess) { - std::cerr << cudaGetErrorString(err) << std::endl; + std::cerr << "file3_kernel [SYNC] failed: " + << cudaGetErrorString(err) << std::endl; return x; } return r.sum; |