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

Support for cl_khr_image2d_from_buffer #197

Open
andravin opened this issue Jul 29, 2017 · 2 comments
Open

Support for cl_khr_image2d_from_buffer #197

andravin opened this issue Jul 29, 2017 · 2 comments

Comments

@andravin
Copy link

It appears that OpenCL 1.2 extension cl_khr_image2d_from_buffer is not completely supported.

This allows zero-copy creation of a 2D image from a buffer, provided that the buffer satisfies CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT and CL_DEVICE_IMAGE_PITCH_ALIGNMENT requirements.

It appears that pyopencl actually defines the CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT and CL_DEVICE_IMAGE_PITCH_ALIGNMENT attributes when cl_khr_image2d_from_buffer is defined, but still does not allow use of the buffer argument when constructing an Image with 2D shape.

Apologies if I am missing something. Hope this report was helpful.

reference:
https://www.khronos.org/registry/OpenCL/specs/opencl-1.2-extensions.pdf https://software.intel.com/sites/default/files/managed/87/11/ImageFromBuffer.pdf

@inducer
Copy link
Owner

inducer commented Jul 29, 2017

Thanks for the report. I won't have time to do much about this myself in the near future, but I'd be happy to take a patch.

@andravin
Copy link
Author

OK cool, mostly wanted a sanity check in case I had missed something. I will take a crack at fixing it myself. Thanks for the quick feedback.

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

No branches or pull requests

2 participants