-
Notifications
You must be signed in to change notification settings - Fork 110
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
Remove deprecated target::host_buffer
#835
Conversation
@@ -45,7 +45,7 @@ struct extract_accessor<oneapi::dpl::__internal::sycl_iterator<Mode, T, Allocato | |||
static constexpr sycl::access::mode mode = Mode; | |||
static constexpr int dim = 1; | |||
using buffer_type = sycl::buffer<T, dim, Allocator>; | |||
using accessor_type = sycl::accessor<T, dim, mode, sycl::access::target::host_buffer>; | |||
using accessor_type = sycl::accessor<T, dim, mode, sycl::access::target::host_task>; |
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 think we should instead use host_accessor
here. @MikeDvorskiy please take a look.
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 agree that sycl::host_accessor
should be used as the return type.
Also, the sycl buffer member function used to get the return value, get_access<mode>()
, is also deprecated in SYCL 2020 and get_host_access()
should be used instead. These should change together.
Requested a few more developers to look at this. |
target::host_buffer
with target::host_task
target::host_buffer
I've updated the PR to use |
To be more specific because there are many
"Deprecated in SYCL 2020. Use get_host_access() instead. The instance I was referring to is right after your change, The function which makes use of this
I think there are some instances elsewhere as well in |
The possible problem with trying to change So I suggest to either accept the current one-line change in this PR, or postpone it completely until we figure out how we deal with access modes in general. |
Its a fair point, I hadn't fully considered the implications of how this will work in context. However, I believe these changes must be done together. To return a Therefore, I think its best to postpone this. As you mention, this struct may not be needed in general. As far as I can find, I don't believe it is used anywhere in the repository (and hasn't been in some time). |
Closing this PR. |
Replacing a use of deprecated
target::host_buffer
withtarget::host_task
. There is one other use ofhost_buffer
here, but it is using the internal namespace, so not sure if it should be replaced as well.