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.

Why cl_khr_gl_sharing and cl_khr_gl_event are both not supported ?

kun__shang
Beginner
2,835 Views

Hi Intel and all,
    Can you tell me, what contrl the cl_khr_gl_sharing  supporting? Is the version of the cpu / gpu? Or the version of the opencl SDK /opencl runtime?
    My device is HD Graphics 530 + Intel Core i5-6300HQ;   
    OS is ubuntu 18.04.4;
    opencl SDK is  intel_sdk_for_opencl_applications_2019.5.345.tar ;
    opencl runtime is intel-opencl_20.05.15524_amd64;
    But  when I use the intel demo  to test OpenCL and OpenGL Interop , it can not work. 
    The clinfos  do not have cl_khr_gl_sharing and cl_khr_gl_event.
    Part of  the clinfos are as bellow:
        Number of platforms                               1
        Platform Name                                   Intel(R) CPU Runtime for OpenCL(TM) Applications
        Platform Vendor                                 Intel(R) Corporation
        Platform Version                                OpenCL 2.1 LINUX
        Platform Profile                                FULL_PROFILE
        Platform Extensions                             cl_khr_icd 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_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint
        Platform Host timer resolution                  1ns
        Platform Extensions function suffix             INTEL
        ........
        Device Name                                     Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz
        Device Vendor                                   Intel(R) Corporation
        Device Vendor ID                                0x8086
        Device Version                                  OpenCL 2.1 (Build 0)
        Driver Version                                  18.1.0.0920
        Device OpenCL C Version                         OpenCL C 2.0
        Device Type                                     CPU
        Device Profile                                  FULL_PROFILE
        Device Available                                Yes
        Compiler Available                              Yes
        Linker Available                                Yes
        Max compute units                               4
        Max clock frequency                             2300MHz
        Device Partition                                (core)
        .......
        Device Extensions                               cl_khr_icd 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_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint


    Looking forward to your reply!

0 Kudos
1 Solution
Dmitry_V_Intel
Employee
2,835 Views

Hello Shang,

At this time, cl_khr_gl_sharing and cl_khr_gl_event device extensions are supported by OpenCL runtime for GPU only for Windows. There is an opened feature request for implementing these extensions for Linux: https://github.com/intel/compute-runtime/issues/166. Once this is done you can download the runtime here: https://github.com/intel/compute-runtime/releases.

View solution in original post

0 Kudos
4 Replies
Dmitry_V_Intel
Employee
2,836 Views

Hello Shang,

At this time, cl_khr_gl_sharing and cl_khr_gl_event device extensions are supported by OpenCL runtime for GPU only for Windows. There is an opened feature request for implementing these extensions for Linux: https://github.com/intel/compute-runtime/issues/166. Once this is done you can download the runtime here: https://github.com/intel/compute-runtime/releases.

0 Kudos
kallaballa
Beginner
2,185 Views

Based on the work in the issue you mentioned (https://github.com/intel/compute-runtime/issues/166) I came up with a few fixes and was able to merge with upstream/22.42.24548. That means that there is an unofficial but compatible solution: https://github.com/kallaballa/compute-runtime/tree/clgl-fork. I still have to generate packages so you will have to build from source to use it.

0 Kudos
kallaballa
Beginner
2,171 Views

Today I made a github release with binary package of my unoffical fork with opengl sharing support: https://github.com/kallaballa/compute-runtime/releases/tag/22.42.24548-clgl

This release is compatible with the most recent official release "22.42.24548" 

0 Kudos
kun__shang
Beginner
2,835 Views

Dmitry V. (Intel) wrote:

Hello Shang,

At this time, cl_khr_gl_sharing and cl_khr_gl_event device extensions are supported by OpenCL runtime for GPU only for Windows. There is an opened feature request for implementing these extensions for Linux: https://github.com/intel/compute-runtime/issues/166. Once this is done you can download the runtime here: https://github.com/intel/compute-runtime/releases.

Thanks, very much appreciated!

0 Kudos
Reply