Closed kkalavantavanich closed 6 years ago
Please read the instructions if you plan to use the repository hosted here, especially for CUDA. After installing, you should logout/login to get the environment variables set up correctly.
Also, are you using the CUDA samples from the upstream installer? You can then just install the cuda-samples
package and the Makefiles should be corrected already.
Also, please clean your system from the old CUDA installation, the path /usr/local/cuda-9.1
is not provided by these packages.
Thank you for the fast response. I followed the instructions on https://negativo17.org/nvidia-driver/ running:
$ sudo dnf install cuda cuda-devel
nvcc
seems to be installed as I indicated. However, the configuration for the PATH
and LIB
environment variables (as followed from the old CUDA installation) remains the same and is broken. Please guide me as to where I can find how to set these variables for the new CUDA installation.
Also, I did install the cuda-samples
package but I cannot find the location of the samples file. Where are they?
nvcc seems to be installed as I indicated. However, the configuration for the PATH and LIB environment variables (as followed from the old CUDA installation) remains the same and is broken. Please guide me as to where I can find how to set these variables for the new CUDA installation.
Those are in the /etc/profile.d/cuda.*
files, and are sourced in login shells. You don't need to set anything. You just need to make sure there are no leftovers from the previous CUDA installation.
Also, I did install the cuda-samples package but I cannot find the location of the samples file. Where are they?
...ehm.... they are in the package:
rpm -ql cuda-samples
The are in a read only directory, so obviously you need to copy them somewhere writable.
You mean that I do not install the samples using dnf install cuda-samples
?
Hi, I am trying to install cuda 9.1 on Fedora 27. I wasn't able to build the NVIDIA CUDA samples. I suspect that the Ma`kefile wasn't able to find CUDA and its libraries.
I enabled the repository according to your website using:
and did not forget to update after enabling the repo.
Here is the list of currently installed repos; not sure if any of the repos are conflicting:
I installed cuda using:
The installation seems to be successful as no error messages appeared.
nvcc
is also installed:However, when I run the CUDA samples,
nvcc
cannot be found for some reasons:Checking the directory in question reveals that nvcc is indeed not in the specified directory:
It also shows that the source / library files are not present (as they had before when I was using the official install which had some problems with Fedora 27). Soft-linking to
/usr/bin/nvcc
didn't solve this problem because the source files cannot be found.Here is my linux information:
I am glad to provide more information if any is required. Thanks!