Tests/Cuda: Output error messages to std::cerr instead of std::cout

This commit is contained in:
Pierre Moreau
2017-02-02 22:52:53 +01:00
committed by Brad King
parent c0d7bb8368
commit 008ed80dcf

View File

@@ -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;