mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
Tests/Cuda: Output error messages to std::cerr instead of std::cout
This commit is contained in:
@@ -10,8 +10,8 @@ int __host__ file1_sq_func(int x)
|
||||
err = cudaGetDeviceCount(&nDevices);
|
||||
if(err != cudaSuccess)
|
||||
{
|
||||
std::cout << "nDevices: " << nDevices << std::endl;
|
||||
std::cout << "err: " << err << std::endl;
|
||||
std::cerr << "nDevices: " << nDevices << std::endl;
|
||||
std::cerr << "err: " << err << std::endl;
|
||||
return 1;
|
||||
}
|
||||
std::cout << "this library uses cuda code" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user