Browse Source

Tests/Cuda: Add identifiers to error messages

Pierre Moreau 8 years ago
parent
commit
eebb2be8b0
2 changed files with 4 additions and 2 deletions
  1. 2 1
      Tests/Cuda/Complex/dynamic.cu
  2. 2 1
      Tests/Cuda/Complex/file3.cu

+ 2 - 1
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;
     }
 }

+ 2 - 1
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;