From 102e24a643b81df502c7e60616c95084f2adf19b Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Tue, 9 Apr 2019 20:45:43 +0300 Subject: [PATCH] [SYCL] Remove accuracy test for native implementation of math function. Native implementation doesn't provide any accuracy guarantees, so checking return value is not portable. This test fails on the system with GCC 7.3 (default GCC on Ubuntu 18.04). Signed-off-by: Alexey Bader --- sycl/test/built-ins/vector_math.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/sycl/test/built-ins/vector_math.cpp b/sycl/test/built-ins/vector_math.cpp index d87fa75c6898c..3b1c9d5b1220c 100644 --- a/sycl/test/built-ins/vector_math.cpp +++ b/sycl/test/built-ins/vector_math.cpp @@ -33,26 +33,6 @@ int main() { assert(r2 == 0.4f); } - // native::exp - { - cl::sycl::cl_float2 r{0}; - { - buffer BufR(&r, range<1>(1)); - queue myQueue; - myQueue.submit([&](handler &cgh) { - auto AccR = BufR.get_access(cgh); - cgh.single_task([=]() { - AccR[0] = cl::sycl::native::exp(cl::sycl::cl_float2{1.0f, 2.0f}); - }); - }); - } - cl::sycl::cl_float r1 = r.x(); - cl::sycl::cl_float r2 = r.y(); - std::cout << "r1 " << r1 << " r2 " << r2 << std::endl; - assert(r1 > 2.718 && r1 < 2.719); // ~2.718281828459045 - assert(r2 > 7.389 && r2 < 7.390); // ~7.38905609893065 - } - // fabs { cl::sycl::cl_float2 r{0};