Skip to content

OpenCL: Fix indirect USM pointer related issues#790

Merged
pvelesko merged 2 commits intomainfrom
indirect-usm-ptrs
Feb 29, 2024
Merged

OpenCL: Fix indirect USM pointer related issues#790
pvelesko merged 2 commits intomainfrom
indirect-usm-ptrs

Conversation

@linehill
Copy link
Collaborator

  • Fix passed USM pointers to clSetKernelExecInfo() as CL_KERNEL_EXEC_INFO_SVM_PTRS which resulted in CL_INVALID_VALUE error on couple Intel OpenCL implementations.

  • Fix indirect USM pointers were not annotated (correctly).

Also, refactor SVMMemoryRegion -> MemoryManager as the class may host either SVM or USM allocations.

* Fix passed USM pointers to clSetKernelExecInfo() as
  CL_KERNEL_EXEC_INFO_SVM_PTRS which resulted in CL_INVALID_VALUE
  error on couple Intel OpenCL implementations.

* Fix indirect USM pointers were not annotated (the right way).

Also, refactor SVMMemoryRegion -> MemoryManager as the class may host
either SVM or USM allocations.
@pvelesko pvelesko merged commit 37dadf7 into main Feb 29, 2024
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