-
Notifications
You must be signed in to change notification settings - Fork 120
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
cl_khr_command_buffer access to read-only memory objects #1312
Comments
I'd need to double check the exact mapping in of sycl::buffer objects to cl_mem creation flags in DPC++, but I think in SYCL-Graphs we could use buffers created with the read only flag in the OpenCL cl_khr_command_buffer backend. |
Even though the current behavior is non-intuitive, I think it would be more confusing if the command buffer behavior ( Could we solve this via the immutable memory object extension, which would disallow updating the memory object through both paths? #1280 |
Discussed in the February 11th teleconference, without a conclusion:
|
Can we make writing with calls such as fill image or copy image, to read-only images optional, as determined by a device info query? |
clCommandFillImageKHR and similar should restrict target images to be write or read-write. clEnqueueFillImage permits fills of read-only images, which may not be implemented in a performant way in the context of command buffers.
The text was updated successfully, but these errors were encountered: