Skip to content

[SYCL] Remove accuracy test for native implementation of math function. #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions sycl/test/built-ins/vector_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,6 @@ int main() {
assert(r2 == 0.4f);
}

// native::exp
{
cl::sycl::cl_float2 r{0};
{
buffer<cl::sycl::cl_float2, 1> BufR(&r, range<1>(1));
queue myQueue;
myQueue.submit([&](handler &cgh) {
auto AccR = BufR.get_access<access::mode::write>(cgh);
cgh.single_task<class nexpF2>([=]() {
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};
Expand Down