如何启用 nvidia-persistenced.service?

ano*_*non 7 nvidia cuda drivers systemd

我正在尝试使用 GTX 1060 在我的 Ubuntu Budgie 17.10 上安装 CUDA。我被困在说明的这一部分:

http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#power9-setup

我已将示例粘贴到指定的文件中。当我尝试跑步时

sudo systemctl enable nvidia-persistenced
Run Code Online (Sandbox Code Playgroud)

我得到:

The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
   instance name specified.
Run Code Online (Sandbox Code Playgroud)

作为参考,这是我的文件的确切内容:

[Unit] 
Description=NVIDIA Persistence Daemon
Wants=syslog.target 

[Service] 
Type=forking
PIDFile=/var/run/nvidia-persistenced/nvidia-persistenced.pid
Restart=always
ExecStart=/usr/bin/nvidia-persistenced --verbose
ExecStopPost=/bin/rm -rf /var/run/nvidia persistenced 

[Install] 
WantedBy=multi-user.target
Run Code Online (Sandbox Code Playgroud)

我对这些文件一无所知,这就是为什么我只是复制和粘贴 - 所以如果你能告诉我出了什么问题,我会很高兴!

小智 5

我可能有点晚了,但我希望这对其他人有帮助。

据我了解,您没有 POWER9 系统,除非您的系统是超级计算机。

根据这个链接那个

作为一个Linux菜鸟,我也被这个问题困扰了很长时间。

希望我有所帮助。