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

Media Samples Preview shows OpenCL GPU coming to Linux?

rtfss1gmail_com
Beginner
380 Views

Hi,

was seeing Media Samples Intel Media Server Studio for Linux preview here :https://software.intel.com/en-us/intel-media-server-studio-support/code-samples

has a new sample for Linux that includes rotate ocl samples says supports OpenCL CPU and GPU devices on Linux with Intel OpenCL SDK..

in opencl_filter_va.cpp I found

 // Hook up the d3d sharing extension functions that we need
    INIT_CL_EXT_FUNC(clGetDeviceIDsFromVA_APIMediaAdapterINTEL);
    INIT_CL_EXT_FUNC(clCreateFromVA_APIMediaSurfaceINTEL);
    INIT_CL_EXT_FUNC(clEnqueueAcquireVA_APIMediaSurfacesINTEL);
    INIT_CL_EXT_FUNC(clEnqueueReleaseVA_APIMediaSurfacesINTEL);

    // Check for success
    if (!clGetDeviceIDsFromVA_APIMediaAdapterINTEL ||
        !clCreateFromVA_APIMediaSurfaceINTEL ||
        !clEnqueueAcquireVA_APIMediaSurfacesINTEL ||
        !clEnqueueReleaseVA_APIMediaSurfacesINTEL)

 

and code like that

    cl_uint nDevices = 0;
    error = clGetDeviceIDsFromVA_APIMediaAdapterINTEL(m_clplatform, CL_VA_API_DISPLAY_INTEL,
                                        m_vaDisplay, CL_PREFERRED_DEVICES_FOR_VA_API_INTEL, 1, &m_cldevice, &nDevices); 

   cl_context_properties props[] = { CL_CONTEXT_VA_API_DISPLAY_INTEL, (cl_context_properties) m_vaDisplay, CL_CONTEXT_INTEROP_USER_SYNC, 1, 0};
    m_clcontext = clCreateContext(props, 1, &m_cldevice, NULL, NULL, &error);

shows that is creating OpenCL context from a GPU device on Linux so can Intel confirm if a preview OCL SDK for Linux has GPU support enabled?

If yes will support OpenCL 2.0 also as on Windows on Broadwell GPUs?

thanks..

0 Kudos
2 Replies
ARNON_P_Intel
Employee
380 Views

The Intel Media Server Suite will add OpenCL support for Linux soon. This commercial support is used buy our target customers for a while as we commented before.

For external support, you can still try the open source project at: http://www.freedesktop.org/wiki/Software/Beignet/

As of today, OpenCL 2.0 is available on Intel Core M processors, windows only.

Regards,

Arnon Peleg

 

 

0 Kudos
rtfss1gmail_com
Beginner
380 Views

​Ok, nice.. speaking of OpenCL 2.0.. what's status of OpenCL 2.0 on Xeon Phi? being previewed/announced this week at SC14?

thanks!​

0 Kudos
Reply