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

Properly annotate Intel USM kernels #911

Merged
merged 2 commits into from
Aug 17, 2024
Merged

Properly annotate Intel USM kernels #911

merged 2 commits into from
Aug 17, 2024

Conversation

pvelesko
Copy link
Collaborator

@pvelesko pvelesko commented Aug 16, 2024

Once kernels are annotated with CL_KERNEL_EXEC_INFO_USM_PTRS_INTEL, they need to be annotated with CL_KERNEL_EXEC_INFO_INDIRECT_DEVICE_ACCESS_INTEL, if the arguments inside the kernel which might see indirect access are allocated as device. If multiple types of allocations are used we have to have multiple calls to clSetKernelExecInfo.Optimally, we would inspect the kernel to figure out exactly what kind of allocations have been used but with indirect access it's complicated.

@pvelesko pvelesko force-pushed the cpu-usm branch 3 times, most recently from 329b4c7 to 04990b1 Compare August 16, 2024 17:35
Have to annotate kernels with all types

CL_KERNEL_EXEC_INFO_INDIRECT_HOST_ACCESS_INTEL
CL_KERNEL_EXEC_INFO_INDIRECT_DEVICE_ACCESS_INTEL
CL_KERNEL_EXEC_INFO_INDIRECT_SHARED_ACCESS_INTEL

since a kernel might have allocations of varied types
@pvelesko pvelesko merged commit ab44488 into main Aug 17, 2024
28 of 30 checks passed
@pvelesko pvelesko deleted the cpu-usm branch August 17, 2024 07:51
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