Skip to content
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

use an appropriate error codes when no function pointer is available #391

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

bashbaug
Copy link
Contributor

Description of Changes

Switch to a more appropriate error code when no function pointer is available instead of returning CL_INVALID_OPERATION unconditionally. This is needed to pass some "negative" tests, especially for extensions where we need to lookup the function pointer.

Testing Done

Tested with the command buffer "negative" tests. After these changes the same number of tests fail with and without the intercept layer, whereas previously many more tests failed due to the CL_INVALID_OPERATION error code.

@bashbaug bashbaug merged commit 8de5d56 into intel:main Nov 21, 2024
7 checks passed
@bashbaug bashbaug deleted the better-error-codes branch November 21, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant