This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

OpenCL/OpenGL ES interop on Android

Hi,

I'm having trouble creating an OpenCL context from an OpenGL ES context on an Odroid XU3 running Android 4.4.4. The following code works fine on other non-ARM graphics hardware, but on the Mali chip the call to clCreateContextFromType fails with the error: "CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR (-1000)"

cl_context_properties contextProps[] = {

  CL_CONTEXT_PLATFORM, cl_context_properties(m_platform),

  CL_GL_CONTEXT_KHR, (cl_context_properties)eglGetCurrentContext(),

  CL_EGL_DISPLAY_KHR, (cl_context_properties)eglGetCurrentDisplay(),

  0

};

clCreateContextFromType(contextProps, CL_DEVICE_TYPE_GPU, 0, &err);

We have checked the m_platform variable and the value is the correct platform id. Are there any special/additional steps in order to create the context, or is OpenCL/OpenGL interop not fully supported at this time on Android?

Thanks,

-Alex

Parents
  • Hi Sheri,

    1. We are compiling using the ndk (r10d)
    2. The supported list of extensions is: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_fp64 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_gl_sharing cl_khr_egl_event cl_khr_egl_image cl_arm_core_idn

    Thanks,

    Alex

Reply
  • Hi Sheri,

    1. We are compiling using the ndk (r10d)
    2. The supported list of extensions is: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_fp64 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_gl_sharing cl_khr_egl_event cl_khr_egl_image cl_arm_core_idn

    Thanks,

    Alex

Children