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

clCreateContext fail with CL_EGL_DISPLAY_KHR

NIMBY_H_
Beginner
312 Views

HI, Im trying to create GL shared CL context with below properties in window + intel opencl sdk

properties.append(CL_GL_CONTEXT_KHR);
properties.append(reinterpret_cast<CCContextProperties>(eglContext));
properties.append(CL_EGL_DISPLAY_KHR);
properties.append(reinterpret_cast<CCContextProperties>(eglDisplay));

And.. my pc environment

  • Intel core i5 cpu 760
  • Nvidia geforce 210
  • installed intel opencl sdk & CUDA opencl sdk
  • window 7 os

eglContext and eglDisplay create successfully, but clCreateContext return error code "CL_INVALID_PROPERTY"

(In this case the device type is DEVICE_TYPE_CPU, because intel platform couldn't find GPU device.. )

Is Anyone trying create CL context with EGL using intel opencl sdk? Is it possible? 

Is intel opencl sdk support gl sharing with EGL?

Please give me some advice.

Thanks. 

 - chan

0 Kudos
1 Reply
Raghupathi_M_Intel
312 Views

OpenGL ES is not supported on CPU, so your context creation (with CL_EGL_*) wont succeed.

Thanks,
Raghu

0 Kudos
Reply