[FFmpeg-devel] Unable to compile with cuda on WSL2
Timo Rothenpieler
timo at rothenpieler.org
Sun Apr 2 12:27:07 EEST 2023
On 02.04.2023 08:12, Dylan Fernando wrote:
> My PATH has /usr/local/cuda-12.1/bin, is this correct?
I don't know. All ffmpeg needs is a working nvcc on PATH.
> I installed clang with sudo apt install clang. When I run:
> ./configure --enable-cuda-llvm --extra-cflags=-I/opt/local/cuda/include
> --nvccflags="-gencode arch=compute_52,code=sm_52 -O2"
>
> I get the error:
> ERROR: cuda_llvm requested but not found
>
> If you think configure made a mistake, make sure you are using the latest
> version from Git. If the latest version fails, report the problem to the
> ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
> Include the log file "ffbuild/config.log" produced by configure as this
> will help
> solve the problem.
>
> attached full log
>
"clang: error: unknown argument: '-gencode'"
The arguments for clang to control the target cuda arch are different.
I don't know how exactly they look, but you can probably easily find
examples.
More information about the ffmpeg-devel
mailing list