NVIDIA Persistenced Daemon 错误

NVIDIA Persistenced Daemon 错误

我正在尝试使用以下指南在 Ubuntu 18.04 上安装 CUDA 10.1 https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html 在步骤中7.2.1 Install Persistence Daemon,当我执行命令时

/usr/bin/nvidia-persistenced --verbose

我收到一个错误:

$ /usr/bin/nvidia-persistenced --verbose nvidia-persistenced failed to initialize. Check syslog for more details.

来自 /var/log/syslog 文件的日志:

May 27 19:49:42 Azurite nvidia-persistenced: Verbose syslog connection opened
May 27 19:49:42 Azurite nvidia-persistenced: Directory /var/run/nvidia-persistenced will not be removed on exit
May 27 19:49:42 Azurite nvidia-persistenced: Unable to access /var/run/nvidia-persistenced: Permission denied
May 27 19:49:42 Azurite nvidia-persistenced: Shutdown (6802)

结果来自nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.59       Driver Version: 440.59       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| 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 840M        Off  | 00000000:08:00.0 Off |                  N/A |
| N/A   52C    P0    N/A /  N/A |    151MiB /  2004MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      2650      G   /usr/lib/xorg/Xorg                            76MiB |
|    0      2805      G   /usr/bin/gnome-shell                          73MiB |
+-----------------------------------------------------------------------------+

结果来自nvcc -V

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:17_PST_2019
Cuda compilation tools, release 10.1, V10.1.105

我的 CUDA Toolkit 安装有问题吗?谢谢。在日志应用程序中:

Sender: nvidia-persiste
Message: Failed to lock PID file: Resource temporarily unavailable

当我和sudo

May 27 20:20:52 Azurite nvidia-persistenced: Verbose syslog connection opened
May 27 20:20:52 Azurite nvidia-persistenced: Directory /var/run/nvidia-persistenced will not be removed on exit
May 27 20:20:52 Azurite nvidia-persistenced: Failed to lock PID file: Resource temporarily unavailable
May 27 20:20:52 Azurite nvidia-persistenced: Shutdown (8059)

笔记:我的笔记本电脑7.2.3.3. Running the BinariesdeviceQuerybandwidthTest

答案1

我刚刚检查了使用htop,发现有一个正在运行PID 1304Command /usr/bin/nvidia-persistenced --user nvidia-persistenced --no-persistence-mode --verbose我想一切都没问题,谢谢。

相关内容