I am trying to use OpenCL to create a 3D texture and read in the kernel (clCreateImage). The texture read always returns 0 on Intel GPU device, but it works ok on CPU device. I wrote a simple test program to reproduce the problem if there is a way to attach the program here. This was tested under the Intel HD Graphics 520 and 5500 platform. I am using the latest Intel OpenCL SDK and drivers on Windows 10.
Is image function actually supported in Intel OpenCL?
連結已複製
Attached is the code to reproduce the problem. This code generates a 3d image and passes to OpenCL kernel. The kernel reads one plane of the 3D image and output the data. It should generate a blue to white gradient output. Use '-t cpu' or '-t gpu' as command line option. The CPU output is correct but GPU is not.
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)