centos nvidia-smi error

来源:互联网 发布:python httplib 编辑:程序博客网 时间:2024/05/20 13:17

error :


when run

nvidia-docker run --rm nvidia/cuda nvidia-smi

the centos reply :

NVIDIA-SMI couldn't find libnvidia-ml.so library in your system. Please make sure that the NVIDIA Display Driver is properly installed and present in your system.
Please also try adding directory that contains libnvidia-ml.so to your system PATH.

Error cause:

SELinux Alert stop the read access on the libnvidia-ml.so.1  of nvidia-docker




Trouble Shooting

Accord to the notification of the

You can generate a local policy module to allow this access.
Allow this access for now by executing:

# ausearch -c 'nvidia-smi' --raw | audit2allow -M my-nvidiasmi

# semodule -i my-nvidiasmi.pp

原创粉丝点击