Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Media Samples Preview shows OpenCL GPU coming to Linux?

$
0
0

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..


Viewing all articles
Browse latest Browse all 1182


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>