OS: Linux
Flavor: CentOS Linx 7 (Core)
build type: run file (cuda_12.2.1_535.86.10_linux.run)
command: bash cuda_12.2.1_535.86.10_linux.run --silent --toolkit --installpath=/home1/apps/cuda/12.2
Hello,
I’m attempting to install CUDA 12.2 on our linux system with the specs above and using the run file provided by NVIDIA. It install’s correctly, but is missing the pkgconfig folder in the install directory. Here is a list of all installed elements from CUDA.
root@build-BLDCHROOT:12.2 # ls
bin extras lib64 nsight-systems-2023.2.3 README tools
compute-sanitizer gds libnvvp nvml share version.json
DOCS gds-12.2 nsight-compute-2023.2.1 nvvm src
EULA.txt include nsightee_plugin targets
Our team uses the pkgconfig folder to check the installation for other builds, and it was on previous installations but for some reason is missing on this one. Is there any solution to get it to build with the correct pkgconfig folder?
I checked the install location of cuda that I defined in my code above and there is a lib64 directory but it only contains the library files along with a cmake and stubs folder which do not contain the associated .pc files we are looking for.
I noticed that with the runfile you can extract the underlying driver runfile and source code such as NVIDIA-Linux-x86_64-535.86.10.run which has more options.
I was attempting to install by running this file, but it says that it needs to be run as root. Is there a way to run it without root? I can run the original runfile not as root but wasn’t should how to actual driver runfile as nonroot.
The runfile driver installer definitely needs root privilege to install the driver. I’m not aware of a method to circumvent that. The driver installer does not know anything about CUDA toolkit components. Therefore it could not possibly install or deposit any pkgconfig files that pertain to the CUDA toolkit, such as cuda-12.2.pc.
The CUDA toolkit installer, on the other hand, can install certain CUDA toolkit components (everything except the driver, basically) without root privilege, if you specify paths correctly. Therefore it makes sense that it would not require root privilege. However if you attempt to run the CUDA toolkit runfile installer without root, and attempt to install the driver that way, it will fail.