如何解决 cuda-9.0 安装的驱动程序问题?

如何解决 cuda-9.0 安装的驱动程序问题?

我正在尝试使用 .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

相关内容