Skip to content

Commit 62866cd

Browse files
badervladimirlaz
authored andcommitted
[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 <alexey.bader@intel.com>
1 parent 9f46e66 commit 62866cd

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

sycl/test/built-ins/vector_math.cpp

-20
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,6 @@ int main() {
3333
assert(r2 == 0.4f);
3434
}
3535

36-
// native::exp
37-
{
38-
cl::sycl::cl_float2 r{0};
39-
{
40-
buffer<cl::sycl::cl_float2, 1> BufR(&r, range<1>(1));
41-
queue myQueue;
42-
myQueue.submit([&](handler &cgh) {
43-
auto AccR = BufR.get_access<access::mode::write>(cgh);
44-
cgh.single_task<class nexpF2>([=]() {
45-
AccR[0] = cl::sycl::native::exp(cl::sycl::cl_float2{1.0f, 2.0f});
46-
});
47-
});
48-
}
49-
cl::sycl::cl_float r1 = r.x();
50-
cl::sycl::cl_float r2 = r.y();
51-
std::cout << "r1 " << r1 << " r2 " << r2 << std::endl;
52-
assert(r1 > 2.718 && r1 < 2.719); // ~2.718281828459045
53-
assert(r2 > 7.389 && r2 < 7.390); // ~7.38905609893065
54-
}
55-
5636
// fabs
5737
{
5838
cl::sycl::cl_float2 r{0};

0 commit comments

Comments
 (0)