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

cflush return -5 after calling clEnqueueAcquireVA_APIMediaSurfacesINTEL

Yu_X_Intel
Employee
155 Views

Hi,

I allocated the buffer with vaCreateSurfaces and map to opencl with clCreateFromVA_APIMediaSurfaceINTEL. But clFlush returns -5 (out of resource) after calling clEnqueueAcquireVA_APIMediaSurfacesINTEL, even though nothing is done in the cl code.

If I remove the clEnqueueAcquireVA_APIMediaSurfacesINTEL, clFlush returns with no error.

If I remove clFlush, the clEnqueueReleaseVA_APIMediaSurfacesINTEL returns -5.

I appreciate it very much if someone give any ideas.

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
155 Views

For now, the best examples we have for VAAPI sharing are in the Media Server Studio samples package for Linux.  The sample_multi_transcode example includes OpenCL rotation.  This is implemented in sample_plugins/rotate_opencl.

 

Reply