Nvidia-persistenced-service is masked

Hello,

I’m following instructions on installing the Cuda Toolkit.

As per the post mandatory instructions, I entered

$ systemctl status nvidia-persistenced

When I run this command, I get the following:

Loaded: masked (Reason: Unit nvidia-persistenced.service is masked.)
Active: inactive (dead)

What does this mean and how do I fix this?

Here is the NVIDIA-SMI:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      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 GTX 166...  Off  | 00000000:01:00.0  On |                  N/A |
| N/A   45C    P8     2W /  N/A |    331MiB /  5944MiB |      7%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1017      G   /usr/lib/xorg/Xorg                           145MiB |
|    0      1482      G   /usr/bin/gnome-shell                         181MiB |
|    0      3414      G   /usr/lib/firefox/firefox                       1MiB |
+-----------------------------------------------------------------------------+

I’m running Ubuntu 20.04 as a dual boot with Windows 10.

Thanks in advance for your help!

I see the exact same issue. Where you able to solve this?

Hi, if you check your /usr/local directory, you might see that cuda is not there. It’s because after ‘sudo apt-get -y install cuda’, you should reboot to load the drivers.
It worked for me.