-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL] Rename deprecated access::target::global_buffer #647
Conversation
The sycl::access::target::global_buffer enumeration is deprecated in SYCL 2020, the target::device one should be used instead. Signed-off-by: Pavel Samolysov <[email protected]>
Signed-off-by: Pavel Samolysov <[email protected]>
Signed-off-by: Pavel Samolysov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we leave at least one test which checks the old variant?
cl::sycl::access::target::global_buffer>; | ||
cl::sycl::access::target::device>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving from SYCL 1.2.1 to SYCL 2020 should change three things about this line:
- The
cl::sycl::
namespace should besycl::
instead, sincecl::
comes in only via<CL/sycl.hpp>
sycl::access::target
should besycl::target
because the former is deprecated (see here)global_buffer
should bedevice
(as changed in your patch)
Is there a reason to only make the global_buffer
=> device
change here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pennycook Yes, the reason is just to change global_buffer
=> device
here, moving from SYCL 1.2.1 to SYCL 2020 is a more global initiative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I still think moving these things to the right namespace now would save time, but I won't argue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, there is a mix of the cl::sycl::
and just sycl::
namespaces in this file, for example it uses cl::sycl::
for access::target
or property
, but sycl::
for ::access::mode
or buffer
, or id
. I'm going to fix the namespace mismatch in another PR.
The sycl::access::target::global_buffer enumeration is deprecated in SYCL 2020, the target::device one should be used instead. Signed-off-by: Pavel Samolysov <[email protected]>
The sycl::access::target::global_buffer enumeration is deprecated in SYCL 2020, the target::device one should be used instead. Signed-off-by: Pavel Samolysov <[email protected]>
The sycl::access::target::global_buffer enumeration is deprecated in SYCL 2020, the target::device one should be used instead. Signed-off-by: Pavel Samolysov <[email protected]>
…st-suite#647) The sycl::access::target::global_buffer enumeration is deprecated in SYCL 2020, the target::device one should be used instead. Signed-off-by: Pavel Samolysov <[email protected]>
The sycl::access::target::global_buffer enumeration is deprecated in SYCL 2020,
the target::device one should be used instead.
Signed-off-by: Pavel Samolysov [email protected]