OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

clEnqueueCopyImage fails on OpenCL SDK 1.5 when images are made from OpenGL objects

sharpneli
Beginner
562 Views
After upgrading into Intel OpenCL SDK 1.5 a piece of code which calls clEnqueueCopyImage fails with the error CL_INVALID_VALUE when the images are made with clCreateFromGLTexture2D. The code worked on OpenCL SDK 1.1 and works with AMD drivers and it works when the images are made with clCreateImage2dD.

The standard says that CL_INVALID_VALUE represents that the the dst&src_origins are wrong or that the region falls outside of the images. We naturally checked that this is not the case. So either SDK 1.5 has a bug which prevents copying images made from OpenGL textures or it returns an invalid error message.

P.S Good job on the 1.5 SDK though. It does not leak memory nearly as much when using OpenGl interaction as the previous one did.
0 Kudos
7 Replies
Evgeny_F_Intel
Employee
562 Views
Thanks for the reporting the issue.
Could you please provide small reproducer for it.
Are you using additional parameters except the mem. object handles, or just NULLs.
0 Kudos
Jim_Vaughn
Beginner
562 Views
I have this problem as well doing the exact same thing and getting the exact same output at the OP is reporting. I will try to get some code demonstrating the issue but it seems (for me) any code using OpenGL/OpenCL interoperability using clCreateFromGLTexture2D seems to fail as mentioend above so you could probably use any example out there which demonstrates using clCreateFromGLTexture2D.
0 Kudos
Evgeny_F_Intel
Employee
562 Views
Thanks for the additional information.

The issue was reproduced on our side.
0 Kudos
Jim_Vaughn
Beginner
562 Views
Evgeny,

Thank you for your quick replay and for looking into this issue. We are not getting this level (or any level) of support from the other vendors and is very refreshing to see an OpenCL vendor actually looking into our issues and being concerned with fixing them.

Thanks,

Jim
0 Kudos
Jim_Vaughn
Beginner
562 Views
Hi Evgeny,

I wanted to touch base and see if you guys had found a work around for this or a patch for the SDK?

Thanks,

Jim
0 Kudos
Evgeny_F_Intel
Employee
562 Views
Hi Jim,

Sorry for long delay in reply.
Unfortunatly there is no workaround of this problem.

We fixed it andthe fixwill be availble in the next public release.

Evgeny
0 Kudos
Jim_Vaughn
Beginner
562 Views
No problem Evgeny,

I am glad you got it fixed and I will eagerly await the release.
Thanks,

Jim
0 Kudos
Reply