From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 25255459BE for ; Sat, 1 Apr 2023 09:28:53 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B89E568C0C7; Sat, 1 Apr 2023 12:28:50 +0300 (EEST) Received: from btbn.de (btbn.de [136.243.74.85]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DAF7E68C0A0 for ; Sat, 1 Apr 2023 12:28:43 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id ADE68D9D72 for ; Sat, 1 Apr 2023 11:28:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1680341320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mr2YjMvHEX5o8mLXbMisjuKQUsSYnTv/GpjhngAShms=; b=r2LFmdc0gn4HzTOMJRGyk5xcnqn4dPL6IhPHGj2iMfjzWsVoaOO8bGXZT8fP/cSmIAKBa5 A4KH1/MXnVT0Dg0lyrbmNlLD/9YnikG93+ThvadcmQF1nKTVf1VujDhn58LLjSZE/ifNVo giMkaz2NfEdVlDxf/5xVpBo27Gnz/p/4e9m2YcC6moBtMiMoszYRlwrH6p3Sn+xqnERBc4 7EeokJq3JRiTN/LIxEOpm3s/Sa8YzvjaeGJXxER//JG08W9nUnH5+udN9yyie5LiHjLMs2 MW1XYdpm+bf5MHy6soVCvLx1c+7U2NqkdqrSHiFN/OT4W2V9xJnF3xoFFlogrQ== Message-ID: Date: Sat, 1 Apr 2023 11:28:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 To: ffmpeg-devel@ffmpeg.org References: Content-Language: en-US From: Timo Rothenpieler In-Reply-To: Subject: Re: [FFmpeg-devel] Unable to compile with cuda on WSL2 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 01.04.2023 10:41, Dylan Fernando wrote: > I'm trying to compile on WSL2 Ubuntu with cuda enabled. Command: > > ./configure --enable-nonfree --enable-cuda-nvcc --extra-c > flags=-I/opt/local/cuda/include --nvccflags="-gencode > arch=compute_52,code=sm_52 -O2" > > when compiling, I get the error: > NVCC libavfilter/vf_bilateral_cuda.ptx > /bin/sh: 1: nvcc: not found > make: *** [ffbuild/common.mak:128: libavfilter/vf_bilateral_cuda.ptx] Error > 127 > > The output when I run nvcc -V is: > nvcc: NVIDIA (R) Cuda compiler driver > Copyright (c) 2005-2023 NVIDIA Corporation > Built on Tue_Feb__7_19:32:13_PST_2023 > Cuda compilation tools, release 12.1, V12.1.66 > Build cuda_12.1.r12.1/compiler.32415258_0 > > I added this to .bashrc: > export CUDA_HOME=/usr/local/cuda-12.1 > export > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.1/lib64:/usr/local/cuda-12.1/extras/CUPTI/lib64 > export PATH=$PATH:$CUDA_HOME/bin > > Thanks, > Dylan > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". nvcc needs to be in your PATH. LD_LIBRARY_PATH is entirely irrelevant for CUDA. So make sure to fix your PATH. But really, just install clang and don't bother with proprietary nvcc. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".