-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Stop throwing exception when passing empty accessor to handler::require() #10597
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
[SYCL] Stop throwing exception when passing empty accessor to handler::require() #10597
Conversation
…re(). Signed-off-by: Maronas, Marcos <[email protected]>
Signed-off-by: Maronas, Marcos <[email protected]>
Signed-off-by: Maronas, Marcos <[email protected]>
Signed-off-by: Maronas, Marcos <[email protected]>
@@ -818,20 +818,18 @@ int main() { | |||
} | |||
} | |||
|
|||
// SYCL2020 4.9.4.1: calling require() on empty accessor should throw | |||
// SYCL2020 4.9.4.1: calling require() on empty accessor should not throw. |
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'm confused. This is exactly wrong. The spec at 4.9.4.1 table 131 first entry says:
Throws exception with the
errc::invalid error code if
(acc.empty() == true).
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.
https://github.com/KhronosGroup/SYCL-Docs/pull/434/files in this PR, it was updated to say it's allowed.
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.
LGTM
…::require() (intel#10597) According to the changes made in https://github.com/KhronosGroup/SYCL-Docs/pull/434/files, empty accessors can now be passed to `handler::require()` without throwing. --------- Signed-off-by: Maronas, Marcos <[email protected]>
According to the changes made in https://github.com/KhronosGroup/SYCL-Docs/pull/434/files, empty accessors can now be passed to
handler::require()
without throwing.