Skip to content

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
@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.

2 participants