如何启用nvidia-persistenced.service?

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

我明白了:

 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. 

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

 [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 

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

您可能希望在进行更改后首先重新加载systemd manager配置。

 sudo systemctl daemon-reload 

然后,您可以尝试启用/启动该服务。

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

据我所知,你没有POWER9系统,除非你的系统是超级计算机。

根据这个链接和那个 。

作为一名Linux新手,我也被困在这一段很长一段时间。

希望我帮忙。