From 008ed80dcf1d03640879b4168f4fba956aa03196 Mon Sep 17 00:00:00 2001 From: Pierre Moreau Date: Thu, 2 Feb 2017 22:52:53 +0100 Subject: Tests/Cuda: Output error messages to std::cerr instead of std::cout --- Tests/Cuda/ObjectLibrary/static.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Cuda/ObjectLibrary/static.cu b/Tests/Cuda/ObjectLibrary/static.cu index 2374c23..a801153 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; -- cgit v0.12