]> git.sesse.net Git - ffmpeg/commit
build: add support for building CUDA files with clang
authorRodger Combs <rodger.combs@gmail.com>
Tue, 30 Jul 2019 07:51:42 +0000 (02:51 -0500)
committerTimo Rothenpieler <timo@rothenpieler.org>
Sun, 4 Aug 2019 17:08:08 +0000 (19:08 +0200)
commit01994c93db43e50c01349203a76c0b7111d1d2f3
tree341dfdb3daff9907d2d0c7087c4ba43ae7bbd9a2
parentad97be9fa30d98c0946ee97ffbff3dfdb7831bf9
build: add support for building CUDA files with clang

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.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Changelog
compat/cuda/cuda_runtime.h [new file with mode: 0644]
configure
ffbuild/common.mak