[FFmpeg-devel] [PATCH 1/2] build: add support for building CUDA files with clang

Philip Langdale philipl at overt.org
Tue Jul 30 11:18:01 EEST 2019


On 2019-07-30 15:51, Rodger Combs wrote:
> This avoids using the CUDA SDK at all; instead, we provide a minimal
> reimplementation of the basic functionality that lavfi actually uses.
> It generates very similar code to what NVCC produces.
> 
> The header contains no implementation code derived from the SDK.
> The function and type declarations are derived from the SDK only to the
> extent required to build a compatible implementation. This is generally
> accepted to qualify as fair use.
> 
> Because this option does not require the proprietary SDK, it does not 
> require
> the "--enable-nonfree" flag in configure.
> ---

This is awesome. Thanks so much for doing it. I'm not in a position to 
test, and
won't be for a couple of weeks, but I'm happy with you just pushing it - 
it's
strictly no worse than what we have today.

--phil


More information about the ffmpeg-devel mailing list