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

[UR] Add validation check to urDeviceGet #860

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

veselypeta
Copy link
Contributor

It should be invalid to pass a positive number for the number of devices and a null pointer for the device handle pointer. If this situation occurs we should return an invalid null pointer. Invalid size might also be a valid return code, but decided to use null pointer error to indicate that likely the device handle pointer is incorrect.

@pbalcer pbalcer merged commit b8cc5ae into oneapi-src:main Sep 18, 2023
26 checks passed
@veselypeta veselypeta deleted the petr/fix-device-get-errorcodes branch September 18, 2023 09:13
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.

3 participants