[FFmpeg-devel] [PATCH]opencl: automatically select the fastest opencl device

Lenny Wang lenny at multicorewareinc.com
Thu Nov 21 13:05:19 CET 2013


Hi,

Use -opencl_options device_idx=-1 or platform_idx=-1 to enable
automatic opencl device selection.

There are usually more than a couple (CPU, iGPU, dGPU) opencl capable
devices present in a mainstream platform.  We wanted something less
heuristic and effective in ffmpeg with automatic opencl device
selection.  This is achieved by running a small representative
workload (unsharp) across all available devices, and the one with the
shortest processing time will be picked.  The entire benchmark only
takes a few seconds to execute.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-opencl-automatically-select-the-fastest-opencl-devic.patch
Type: application/octet-stream
Size: 12691 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131121/a531a9f2/attachment.obj>


More information about the ffmpeg-devel mailing list