-
Notifications
You must be signed in to change notification settings - Fork 789
[SYCL] Split invalid work-group size error handling #1216
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] Split invalid work-group size error handling #1216
Conversation
1e2cabf
to
653723d
Compare
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.
Sorry, one more nitpick
Signed-off-by: Steffen Larsen <[email protected]>
653723d
to
c1a11f9
Compare
We had a discussion with @alexbatashev related to this in #860, a quick recap:
My current understanding is that each PI call that has OpenCL equivalent should behave in this manner and therefore, there cannot be too OpenCL-specific error handling. Note: mine understanding might not be correct and I've already tried to reach @smaslov-intel to confirm it, but unsuccessfully so far. I just trying to understand whether we really need to some infrastructure for per-plugin error handling or we just need to be sure that behavior of all plugins is aligned to some common denominator (for example, OpenCL spec or some special document for Plugin Interface) |
Another option is to expand the repertoire of failures, so in addition to Many of these will of course be somewhat backend and/or device specific, and to some extent the error messages will bloat slightly, but the error handling won't appear BE specific nor will we need a PI call for handling this error. |
Note that |
Yes, this is the default assumption. Everything that diverges from that should be documented in PI API. But we should be open to adjust PI API behavior, and offload some of the functionalities to plugins, where it really makes sense. |
The current error handling for
PI_INVALID_WORK_GROUP_SIZE
is very specific to OpenCL.This PR splits the error handling of
PI_INVALID_WORK_GROUP_SIZE
into an OpenCL specific handler function and a general one that is used if the BE is not OpenCL.Signed-off-by: Steffen Larsen [email protected]