inducer / inducer/pyopencl

Support for cl_khr_image2d_from_buffer

Open
#197 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
247
Avg merge
7h 2m
Merged PRs (30d)
6

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.