Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Do not use cl_* types in DeviceLib tests #1555

Conversation

AlexeySachkov
Copy link

cl_* types are only defined by SYCL 2020 spec for interoperability with OpenCL backend. We should be focusing on core SYCL types instead.

`cl_*` types are only defined by SYCL 2020 spec for interoperability
with OpenCL backend. We should be focusing on core SYCL types instead.
s::queue myQueue;
myQueue.submit([&](s::handler &cgh) {
auto AccR = BufR.get_access<s::access::mode::write>(cgh);
cgh.single_task<class rotateSI1SI2>([=]() {
AccR[0] = s::rotate(static_cast<s::cl_char>((unsigned char)0xe0),
s::cl_char{50});
AccR[0] = s::rotate((unsigned char)0xe0, (unsigned char)50);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if it is important but arguments on the left is finally char, not unsigned ones

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try to keep the test as close as possible to the original version, changed this line in 57be286

@KseniyaTikhomirova KseniyaTikhomirova self-requested a review January 30, 2023 11:20
@AlexeySachkov AlexeySachkov merged commit 9113955 into intel:intel Jan 30, 2023
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
`cl_*` types are only defined by SYCL 2020 spec for interoperability
with OpenCL backend. We should be focusing on core SYCL types instead.
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…ite#1555)

`cl_*` types are only defined by SYCL 2020 spec for interoperability
with OpenCL backend. We should be focusing on core SYCL types instead.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants