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

Use of urEnqueueUSMFill on OpenCL enforces requirement on Host Mem Allocs for odd sizes of pattern #1837

Open
coldav opened this issue Jul 9, 2024 · 0 comments
Labels
bug Something isn't working opencl OpenCL adapter specific issues

Comments

@coldav
Copy link
Contributor

coldav commented Jul 9, 2024

On oneapi-construction-kit/refsi we support USM but not Host Allocs. The workaround for odd sizes of pattern_size calls clHostMemAllocINTEL_fn which refsi does not support, and likely many implementations won't. refsi does support device allocations however.

This can be reproduced by building cloning https://github.com/codeplaysoftware/oneapi-construction-kit.git and building with:

cmake -GNinja -DCA_MUX_TARGETS_TO_ENABLE="riscv" -DCA_RISCV_ENABLED=ON  -DCA_ENABLE_API=cl       -DCA_LLVM_INSTALL_DIR=<llvm_install>  -DCA_CL_ENABLE_ICD_LOADER=ON   -DOCL_EXTENSION_cl_khr_command_buffer=ON -DOCL_EXTENSION_cl_khr_command_buffer_mutable_dispatch=ON

LLVM Install requires RISCV and lld to be enabled.

This is shown up in the SYCL CTS test:
test_queue/queue shortcuts unified shared memory core

where it looks to cover a fill of pattern_size 12 after commit intel/llvm#13788

@kbenzie kbenzie added bug Something isn't working opencl OpenCL adapter specific issues labels Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working opencl OpenCL adapter specific issues
Projects
None yet
Development

No branches or pull requests

2 participants