summaryrefslogtreecommitdiff
path: root/Tests/Cuda/ObjectLibrary
diff options
context:
space:
mode:
authorPierre Moreau <dev@pmoreau.org>2017-02-02 22:52:53 +0100
committerBrad King <brad.king@kitware.com>2017-02-10 13:46:07 -0500
commit008ed80dcf1d03640879b4168f4fba956aa03196 (patch)
tree95abcc07eef082fd6370ae7ce8cac9c5bf63fe1c /Tests/Cuda/ObjectLibrary
parentc0d7bb8368c3d157d1a2758b620fc726355e554d (diff)
downloadcmake-008ed80dcf1d03640879b4168f4fba956aa03196.tar.gz
Tests/Cuda: Output error messages to std::cerr instead of std::cout
Diffstat (limited to 'Tests/Cuda/ObjectLibrary')
-rw-r--r--Tests/Cuda/ObjectLibrary/static.cu4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/Cuda/ObjectLibrary/static.cu b/Tests/Cuda/ObjectLibrary/static.cu
index 2374c23627..a801153308 100644
--- a/Tests/Cuda/ObjectLibrary/static.cu
+++ b/Tests/Cuda/ObjectLibrary/static.cu
@@ -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;