From: Yangqing Jia Date: Fri, 13 Sep 2013 00:45:58 +0000 (-0700) Subject: common bugfix X-Git-Tag: submit/tizen/20180823.020014~1092 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a544d162725ab442c05660db5e7469f0e9da599b;p=platform%2Fupstream%2Fcaffeonacl.git common bugfix --- diff --git a/src/caffeine/common.hpp b/src/caffeine/common.hpp index d4c455a..2991011 100644 --- a/src/caffeine/common.hpp +++ b/src/caffeine/common.hpp @@ -37,7 +37,7 @@ static std::ostream nullout(0); // TODO(Yangqing): make a better logging scheme #define CUDA_LOG_IF(condition) \ - ((condition) != cudaSuccess) ? nullout : std::cout + ((condition) == cudaSuccess) ? nullout : std::cout #define CUDA_CHECK(condition) \ CUDA_LOG_IF(condition) << "Check failed: " #condition " " @@ -52,4 +52,4 @@ static std::ostream nullout(0); #endif // NDEBUG -#endif // CAFFEINE_COMMON_HPP_ \ No newline at end of file +#endif // CAFFEINE_COMMON_HPP_