[FFmpeg-devel] [PATCH] configure: autodetect opencl

wm4 nfxjfg at googlemail.com
Mon Mar 2 09:56:03 CET 2015

On Mon, 2 Mar 2015 07:29:11 +0000
"Gupta, Maneesh" <Maneesh.Gupta at amd.com> wrote:

> Hi,
> Similar to the way SDL is being autodetected, the attached patch proposes to autodetect OpenCL.

SDL shouldn't be autodetected at all, since it's not a system lib, and
often causes all sorts of problems even if you don't use anything

> Rationale for the change:
> * OpenCL linking typically happens against the OpenCL ICD's import library. Hence there is no hard-linking against the OpenCL ICD's DLL/shared library. So ffmpeg should continue to run fine for non-OpenCL cases even when OpenCL runtime is not available on the user's system.
> * Enabling OpenCL is relatively low-impact since it does not automatically disable or override any existing functionality. The user still needs to explicitly specify opencl=1 in the filter options when using ffmpeg to use the OpenCL path.
> Please review the patch and share your comments on the same.
> Thanks and Regards,
> Maneesh

More information about the ffmpeg-devel mailing list