-
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
[OpenCL] Make extension function lookup return unusupported error #1448
[OpenCL] Make extension function lookup return unusupported error #1448
Conversation
This commit changes the error code of failing to look up extension pointers in OpenCL return UR_RESULT_ERROR_UNSUPPORTED_FEATURE instead of UR_RESULT_ERROR_INVALID_VALUE. Likewise, some of the places this lookup was used, error would return UR_RESULT_ERROR_INVALID_OPERATION. The motivation behind this change is to make the error codes for cases where extensions are not supported for the OpenCL target clearer. Signed-off-by: Larsen, Steffen <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1448 +/- ##
==========================================
- Coverage 14.82% 12.43% -2.40%
==========================================
Files 250 241 -9
Lines 36220 36242 +22
Branches 4094 4111 +17
==========================================
- Hits 5369 4506 -863
- Misses 30800 31732 +932
+ Partials 51 4 -47 ☔ View full report in Codecov by Sentry. |
relates to #1362 |
This commit adds a new error code to PI as a mapping from UR_RESULT_ERROR_FEATURE_UNSUPPORTED. This relates to oneapi-src/unified-runtime#1448. Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Interesting! This was an ambiguity we ran into when debugging an issue with an unexpected device being picked up in DPC++. I have made a patch to also make a mapping for the unsupported error in intel/llvm as well: intel/llvm#13036 The hope is that this will make it easier to differentiate when the backend is unhappy with a call and when it is simply just not supporting it. |
Signed-off-by: Larsen, Steffen <[email protected]>
This commit adds a new error code to PI as a mapping from UR_RESULT_ERROR_FEATURE_UNSUPPORTED. This relates to oneapi-src/unified-runtime#1448. Signed-off-by: Larsen, Steffen <[email protected]>
@kbenzie - I think this is ready. |
Hi, there were some checks for functions that were followed by a
|
note that OCK was passing (fast) SYCL CTS before this point, so it suggests that perhaps we have made something optional an error. |
This commit reverts the urMemBufferCreate changes for returning function lookup error in oneapi-src#1448 as the function had a fallback path which is no longer taken. Signed-off-by: Larsen, Steffen <[email protected]>
Revert oneapi-src/unified-runtime#1448, pulls in OpenCL adapter changes from oneapi-src/unified-runtime#1496.
…#13331) Revert oneapi-src/unified-runtime#1448, pulls in OpenCL adapter changes from oneapi-src/unified-runtime#1496.
…l_unsupported [OpenCL] Make extension function lookup return unusupported error
This commit adds a new error code to PI as a mapping from UR_RESULT_ERROR_FEATURE_UNSUPPORTED. This relates to oneapi-src/unified-runtime#1448. Signed-off-by: Larsen, Steffen <[email protected]>
This commit changes the error code of failing to look up extension pointers in OpenCL return UR_RESULT_ERROR_UNSUPPORTED_FEATURE instead of UR_RESULT_ERROR_INVALID_VALUE. Likewise, some of the places this lookup was used, error would return UR_RESULT_ERROR_INVALID_OPERATION. The motivation behind this change is to make the error codes for cases where extensions are not supported for the OpenCL target clearer.