mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 12:40:06 +00:00
Tests/Cuda: Add identifiers to error messages
This commit is contained in:
parent
84f3c87b03
commit
eebb2be8b0
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user