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

Modify USM device allocation information returned by clGetDeviceInfo #286

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

sophimao
Copy link
Contributor

According to USM extension spec, clDeviceMemAllocINTEL will return NULL and CL_INVALID_OPERATION status if the device has property CL_DEVICE_DEVICE_MEM_CAPABILITIES_INTEL equal to 0. Before, the runtime always return 1 for device allocation capabilities as all legacy devices support device allocations. This is no longer true in IP Authoring flow.

According to USM extension spec, clDeviceMemAllocINTEL will return
NULL and CL_INVALID_OPERATION status if the device has property
CL_DEVICE_DEVICE_MEM_CAPABILITIES_INTEL equal to 0. Before, the
runtime always return 1 for device allocation capabilities as all
legacy devices support device allocations. This is no longer true
in IP Authoring flow.
@sophimao sophimao requested a review from zibaiwan April 12, 2023 14:23
Copy link
Contributor

@zibaiwan zibaiwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Sophie for fixing this!

@sophimao sophimao merged commit 028d348 into intel:main Apr 12, 2023
@sophimao sophimao deleted the usm-capabilities branch April 12, 2023 16:57
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.

2 participants