- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Image is an important feature in OpenCL to use GPU interpolation. Can somebody answer this question here? If it does not work, Intel OpenCL is useless.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
This feature should be supported. You could attach code (put it in a zip or .tar.gz file) to this post (hit the last icon - Attach Media, to attach your file). Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like that clEnqueueMapImage non-blocking map need to be set to true here. I am surprised it worked on CPU and all the other GPUs I worked on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So do you still consider this an issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
no

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page