KaliLinux CUDA NVRTC_ERROR_INVALID_OPTION
#3
Maybe I can add:
Code:
─$ nvcc -V 
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Wed_Jun__2_19:15:15_PDT_2021
Cuda compilation tools, release 11.4, V11.4.48
Build cuda_11.4.r11.4/compiler.30033411_0

And:
Code:
─$ echo $PATH && echo $LD_LIBRARY_PATH
/usr/local/cuda-11.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
/usr/local/cuda-11.4/lib64:

Also, the exact packages:
Code:
─$ apt list --installed | grep nvidia

firmware-nvidia-gsp/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 525.147.05-10 amd64 [installed,auto-removable]
glx-alternative-nvidia/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 1.2.2 amd64 [installed,automatic]
libegl-nvidia-tesla-470-0/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libgl1-nvidia-tesla-470-glvnd-glx/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libgles-nvidia-tesla-470-1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libgles-nvidia-tesla-470-2/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libglx-nvidia-tesla-470-0/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-compiler/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 525.147.05-10 amd64 [installed,auto-removable]
libnvidia-egl-wayland1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 1:1.1.13-1 amd64 [installed,automatic]
libnvidia-nvvm4/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 525.147.05-10 amd64 [installed,auto-removable]
libnvidia-ptxjitcompiler1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 525.147.05-10 amd64 [installed,auto-removable]
libnvidia-tesla-470-cbl/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-cfg1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-cuda1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-eglcore/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-encode1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-glcore/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-glvkspirv/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-ml1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-nvcuvid1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-ptxjitcompiler1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
libnvidia-tesla-470-rtcore/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-egl-common/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 525.147.05-10 amd64 [installed,automatic]
nvidia-installer-cleanup/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 20240109+1 amd64 [installed,automatic]
nvidia-kernel-common/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 20240109+1 amd64 [installed,automatic]
nvidia-modprobe/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 535.161.07-1 amd64 [installed,automatic]
nvidia-persistenced/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 525.147.05-1 amd64 [installed,automatic]
nvidia-settings-tesla-470/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.161.03-1 amd64 [installed,automatic]
nvidia-support/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 20240109+1 amd64 [installed,automatic]
nvidia-tesla-470-alternative/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-tesla-470-driver-bin/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-tesla-470-driver-libs/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-tesla-470-driver/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed]
nvidia-tesla-470-egl-icd/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-tesla-470-kernel-dkms/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-tesla-470-kernel-support/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-tesla-470-smi/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-tesla-470-vdpau-driver/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-tesla-470-vulkan-icd/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
nvidia-vulkan-common/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 525.147.05-10 amd64 [installed,automatic]
xserver-xorg-video-nvidia-tesla-470/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]
                                                                                                                                                                                                  ─$ apt list --installed | grep cuda 

libcudart12/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 12.0.146~12.0.1-4 amd64 [installed,auto-removable]
libnvidia-tesla-470-cuda1/The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali)-rolling,now 470.239.06-1 amd64 [installed,automatic]


I installed via nvidia-tesla-470 package for my legacy GPU and executed the runfile for CUDA 11.4
When installing CUDA via the runfile, multiple packages can be installed (of which, a driver that goes with CUDA 11.4).
I did not install the driver shipped with the runfile, only the CUDA toolkit.
Reply


Messages In This Thread
RE: KaliLinux CUDA NVRTC_ERROR_INVALID_OPTION - by hillfias - 05-16-2024, 12:27 PM