@@ -90,42 +90,6 @@ template <typename... ValueT> struct should_skip {
9090 }
9191};
9292
93- #define CHECK_PRINT (ResultT, RESULT, EXPECTED ) \
94- if constexpr (std::is_integral_v<ResultT>) { \
95- std::cerr << " RESULT == EXPECTED" << std::endl; \
96- std::cerr << RESULT << " == " << EXPECTED << std::endl; \
97- } else if constexpr (contained_is_integral_v<ResultT>) { \
98- for (size_t i = 0 ; i < RESULT.size (); i++) { \
99- std::cerr << i << " RESULT[i] == EXPECTED[i]" << std::endl; \
100- std::cerr << i << " " << RESULT[i] << " == " << EXPECTED[i] \
101- << std::endl; \
102- } \
103- } else if constexpr (syclcompat::is_floating_point_v<ResultT>) { \
104- if (syclcompat::detail::isnan (RESULT)) { \
105- std::cerr << " syclcompat::detail::isnan(EXPECTED)" << std::endl; \
106- std::cerr << syclcompat::detail::isnan (EXPECTED) << std::endl; \
107- } else { \
108- std::cerr << " fabs(RESULT - EXPECTED) < ERROR_TOLERANCE" << std::endl; \
109- std::cerr << fabs (RESULT - EXPECTED) << " < " << ERROR_TOLERANCE \
110- << std::endl; \
111- } \
112- } else if constexpr (contained_is_floating_point_v<ResultT>) { \
113- for (size_t i = 0 ; i < RESULT.size (); i++) { \
114- if (syclcompat::detail::isnan (RESULT[i])) { \
115- std::cerr << i << " syclcompat::detail::isnan(EXPECTED[i])" \
116- << std::endl; \
117- std::cerr << syclcompat::detail::isnan (EXPECTED[i]) << std::endl; \
118- } else { \
119- std::cerr << i << " fabs(RESULT[i] - EXPECTED[i]) < ERROR_TOLERANCE" \
120- << std::endl; \
121- std::cerr << i << " " << fabs (RESULT[i] - EXPECTED[i]) << " < " \
122- << ERROR_TOLERANCE << std::endl; \
123- } \
124- } \
125- } else { \
126- static_assert (0 , " math_fixt.hpp should not have arrived here." ); \
127- }
128-
12993#define CHECK (ResultT, RESULT, EXPECTED ) \
13094 if constexpr (std::is_integral_v<ResultT>) { \
13195 assert (RESULT == EXPECTED); \
@@ -211,10 +175,8 @@ class BinaryOpTestLauncher : OpTestLauncher {
211175 syclcompat::wait ();
212176 syclcompat::memcpy<ResultT>(&res_h_, res_, data_size_);
213177
214- // CHECK_PRINT(ResultT, res_h_, expected);
215178 CHECK (ResultT, res_h_, expected);
216179 };
217-
218180 template <auto Kernel>
219181 void launch_test (ValueT op1, ValueU op2, ResultT expected, bool need_relu) {
220182 if (skip_)
@@ -225,7 +187,6 @@ class BinaryOpTestLauncher : OpTestLauncher {
225187 syclcompat::wait ();
226188 syclcompat::memcpy<ResultT>(&res_h_, res_, data_size_);
227189
228- // CHECK_PRINT(ResultT, res_h_, expected);
229190 CHECK (ResultT, res_h_, expected);
230191 };
231192 template <auto Kernel>
@@ -243,7 +204,6 @@ class BinaryOpTestLauncher : OpTestLauncher {
243204 syclcompat::memcpy<bool >(&res_hi_h_, res_hi_, 1 );
244205 syclcompat::memcpy<bool >(&res_lo_h_, res_lo_, 1 );
245206
246- // CHECK_PRINT(ResultT, res_h_, expected);
247207 CHECK (ResultT, res_h_, expected);
248208 assert (res_hi_h_ == expected_hi);
249209 assert (res_lo_h_ == expected_lo);
@@ -284,7 +244,6 @@ class UnaryOpTestLauncher : OpTestLauncher {
284244 syclcompat::wait ();
285245 syclcompat::memcpy<ResultT>(&res_h_, res_, data_size_);
286246
287- // CHECK_PRINT(ResultT, res_h_, expected);
288247 CHECK (ResultT, res_h_, expected);
289248 }
290249};
@@ -336,7 +295,6 @@ class TernaryOpTestLauncher : OpTestLauncher {
336295 syclcompat::wait ();
337296 syclcompat::memcpy<ResultT>(&res_h_, res_, data_size_);
338297
339- // CHECK_PRINT(ResultT, res_h_, expected);
340298 CHECK (ResultT, res_h_, expected);
341299 };
342300};
0 commit comments