![如何解决 cuda-9.0 安装的驱动程序问题?](https://linux22.com/image/1004597/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%20cuda-9.0%20%E5%AE%89%E8%A3%85%E7%9A%84%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E9%97%AE%E9%A2%98%EF%BC%9F.png)
我正在尝试使用 .run 文件安装 cuda-9.0,按照这个问题。
我对附带的驱动程序不感兴趣,因为它比当前安装的驱动程序更旧(384.98),所以我在安装包时没有选择它。以下是输出nvidia-smi
:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.98 Driver Version: 384.98 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1070 Off | 00000000:01:00.0 On | N/A |
| 27% 36C P0 32W / 151W | 312MiB / 8111MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1170 G /usr/lib/xorg/Xorg 171MiB |
| 0 2623 G cinnamon 62MiB |
| 0 2987 G ...-token=B5CEA9F4B227E114BC1B94ABA87F7BB9 76MiB |
+-----------------------------------------------------------------------------+
运行后sudo sh cuda_9.0.176_384.81_linux.run
,出现以下错误,我不知道如何修复:
***WARNING: Incomplete installation! This installation did not install the CUDA
Driver. A driver of version at least 384.00 is required for CUDA 9.0 functionality
to work.
To install the driver using this installer, run the following command, replacing
<CudaInstaller> with the name of this run file:
sudo <CudaInstaller>.run -silent -driver
我需要做什么来纠正这个问题?我的驱动程序高于所需的版本。
答案1
我认为错误是由于 Nvidia 和 CUDA 驱动程序版本不兼容造成的。就我而言,我忽略了它,它工作正常,但请确保您已PATH
设置为/usr/local/cuda-XX/bin
并在或等效文件中LD_LIBRARY_PATH
设置为。/usr/local/cuda-XX/lib64
.bashrc