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

opencl on win10 can't use interop opencl with directx surface

j_x_
Beginner
723 Views

i use opencl with i3 4150 on windows 7 or windows 8.1 is good.

but i use same code on windows 10 is error? 

        cl_context_properties props[] = 
        {
            CL_CONTEXT_D3D9EX_DEVICE_INTEL, (cl_context_properties)d3d_device,
            CL_CONTEXT_INTEROP_USER_SYNC, (cl_context_properties)m_OCLplatform,
            0
        }; 

        /**Step 3: Create context.*/
        m_OCLcontext = clCreateContext(props, 1,  m_OCLdevices, NULL, NULL, &status); 

windows 10 is can't use interop opencl with directx surface?

 

0 Kudos
1 Solution
Robert_I_Intel
Employee
723 Views

Hi,

Couple of questions:

1. Which graphics driver version are you using on Windows 10?

2. Could you please provide a full version of your code so I can build it and try it out?

3. What kind of error are you getting? Return code?

4. Which version of Windows 10? 64-bit or 32-bit?

View solution in original post

0 Kudos
3 Replies
Robert_I_Intel
Employee
724 Views

Hi,

Couple of questions:

1. Which graphics driver version are you using on Windows 10?

2. Could you please provide a full version of your code so I can build it and try it out?

3. What kind of error are you getting? Return code?

4. Which version of Windows 10? 64-bit or 32-bit?

0 Kudos
Robert_I_Intel
Employee
723 Views

BTW, DX sharing is expected to work. Thanks!

0 Kudos
Robert_I_Intel
Employee
723 Views

Hi,

I just tried sample_multi_transcode that uses Intel extension (see https://software.intel.com/en-us/intel-media-server-studio-support/code-samples - I got the Windows R1 package https://software.intel.com/sites/default/files/managed/b7/7e/MediaSamples_Windows_2016.msi ) and things worked fine for me (see below): so check that sample first.

C:\Users\Robert\Documents\Intel Media SDK Samples 2016 6.0.0.142\_build\Win32\Debug>sample_multi_transcode.exe -i::h264 test_stream.264 -o::h264 foobar.264 -opencl -angle 180
Multi Transcoding Sample Version 1.0.0.0

OpenCL or chroma conversion is present at least in one session. External memory allocator will be used for all sessions .
Pipeline surfaces number: 10
Pipeline surfaces number: 40
Info: try to open file (ocl_rotate.cl) in the current directory
info: using GPU OpenCL device with media sharing extension
MFX HARDWARE Session 0 API ver 1.17 parameters:
Input  video: AVC
Output video: AVC
MFX dll: C:\Program Files\Intel\Media SDK\libmfxhw32.dll

Session 0 was NOT joined with other sessions

Transcoding started

Transcoding finished

Common transcoding time is  0.24 sec
MFX session 0 transcoding PASSED:
Processing time: 0.23 sec
Number of processed frames: 101

The test PASSED

 

0 Kudos
Reply