当前位置:网站首页>[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

边栏推荐
- DLS-42/6-4 DC110V双位置继电器
- Introduction and principle analysis of cluster and LVS
- 基础知识之二——STA相关的基本定义
- Open3D 点云颜色渲染
- pull_ to_ refresh
- Technical personnel advanced to draw a big picture of business, hand-in-hand teaching is coming
- Note d'étude du DC: zéro dans le chapitre officiel - - Aperçu et introduction du processus de base
- Typora的使用
- gin_gorm
- 【Qt5-基础篇_1】从0开始,德天老师和你一起学习——窗口简介
猜你喜欢

基础知识之二——STA相关的基本定义

Windows环境下安装MongoDB数据库

Dls-20 double position relay 220VDC

Poor students can also play raspberry pie

3dsmax插件开发遍历节点对象和Object获取及INode变换矩阵说明

Why not two or four TCP handshakes
![分割链表[先取next再斩断链表防止断链]](/img/eb/708ab20c13df75f4dbd2d6461d3602.png)
分割链表[先取next再斩断链表防止断链]

Unknown database连接数据库错误
![[network packet loss and network delay? This artifact can help you deal with everything!]](/img/c4/f733b23327458b9266b9cbcccb6f14.png)
[network packet loss and network delay? This artifact can help you deal with everything!]

Docker 部署 MySQL 8
随机推荐
元宇宙为 VR/AR 带来的新机会
mustache语法
Openmv and k210 of the f question of the 2021 video game call the openmv API for line patrol, which is completely open source.
sort自定义函数
Use of typora
OCR的一些项目
Two position relay st2-2l/ac220v
3dsmax插件开发遍历节点对象和Object获取及INode变换矩阵说明
使用 C# 创造 ASCII 艺术
Introduction and principle analysis of cluster and LVS
闭锁继电器YDB-100、100V
【网络丢包,网络延迟?这款神器帮你搞定所有!】
Pre training / transfer learning of models
gin 配置文件
Impact relay zc-23/dc220v
Xjy-220/43ac220v static signal relay
二季度最后一天
Technical personnel advanced to draw a big picture of business, hand-in-hand teaching is coming
[leetcode] sum of two numbers [1]
Zero of DC learning notes -- overview and basic process introduction