From eebb2be8b0db17bb5f760e7fa04c020406e6f6eb Mon Sep 17 00:00:00 2001 From: Pierre Moreau Date: Thu, 2 Feb 2017 23:22:16 +0100 Subject: Tests/Cuda: Add identifiers to error messages --- Tests/Cuda/Complex/dynamic.cu | 3 ++- 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; -- cgit v0.12