当前位置:网站首页>[problem handled] -nvidia SMI command cannot obtain the GPU process number of its own container and the external GPU process number
[problem handled] -nvidia SMI command cannot obtain the GPU process number of its own container and the external GPU process number
2022-07-01 01:29:00 【Ye Laila spicy】
Introduction : In the deployment docker When the service is running, it is found that nvidia-smi The command cannot get the of its own container GPU Process and external GPU Process number . Verify and find some solutions .
1 Use docker Parameters pid=host This will be with the container systemctl Command conflict
docker run --rm --privileged=true --runtime=nvidia -e NVIDIA_DRIVER_CAPABILITIES=all --pid=host --gpus all nvidia/cuda:10.0-base nvidia-smi

If it is all in one The container of Need to use systemctl The command cannot be used , At present, we have encountered such a situation . Algorithm binding is behind it gpu Processed .
2 Use py3smi

pip3 install py3nvml
py3smi
nvidia-smi

https://github.com/fbcotter/py3nvml
3 k8s in Use hostPID:true

边栏推荐
猜你喜欢

Locking relay ydb-100, 100V

Using recyclerreview to show banner is very simple

Docker 部署 MySQL 8

数字IC设计流程总结

Orb-slam2 source code learning (II) map initialization

dc_labs--lab1的学习与总结
![Split the linked list [take next first and then cut the linked list to prevent chain breakage]](/img/eb/708ab20c13df75f4dbd2d6461d3602.png)
Split the linked list [take next first and then cut the linked list to prevent chain breakage]

Install redis database and download redis Desktop Manager in win11

Installing mongodb database in Windows Environment

双位置继电器ST2-2L/AC220V
随机推荐
用recyclerReview展示Banner,很简单
用 Flutter 的 Canvas 画点有趣的图形
DLS-20型双位置继电器 220VDC
做生意更加务实
DLS-42/6-4 DC110V双位置继电器
C# 自定义并动态切换光标
TypeError: Argument ‘angle‘ can not be treated as a double
[learning notes] simple DP
日志 logrus第三方库的使用
奇偶链表[链表操作的两种大方向]
Open3D 点云颜色渲染
[deepin] common sets
友盟(软件异常实时监听的好帮手:Crash)接入教程(有点基础的小白最易学的教程)
Why build a personal blog
Digital IC design process summary
Visual studio 2019 Download
编译安装oh-my-zsh
Docker deployment MySQL 8
Dls-20 double position relay 220VDC
uniapp官方组件点击item无效,解决方案