当前位置:网站首页>[问题已处理]-nvidia-smi命令获取不到自身容器的GPU进程和外部的GPU进程号
[问题已处理]-nvidia-smi命令获取不到自身容器的GPU进程和外部的GPU进程号
2022-07-01 00:40:00 【爷来辣】
导语:在部署docker服务的时候发现容器内部的nvidia-smi命令获取不到自身容器的GPU进程和外部的GPU进程号。验证并找了一些方法解决。
1 使用docker参数pid=host 这个会和容器的systemctl命令冲突
docker run --rm --privileged=true --runtime=nvidia -e NVIDIA_DRIVER_CAPABILITIES=all --pid=host --gpus all nvidia/cuda:10.0-base nvidia-smi
如果是all in one的容器 需要使用systemctl命令则无法使用,目前遇到的正式这种情况。后面靠算法绑定gpu处理了。
2 使用py3smi
pip3 install py3nvml
py3smi
nvidia-smi
https://github.com/fbcotter/py3nvml
3 k8s中 使用hostPID:true
边栏推荐
- Two position relay st2-2l/ac220v
- XJY-220/43AC220V静态信号继电器
- (学习力+思考力) x 行动力,技术人成长的飞轮效应总结
- Orb-slam2 source code learning (II) map initialization
- mustache语法
- Authentication principle of Ranger plug-in
- 自定义注解实现校验
- Inspire students' diversified thinking with steam Education
- Tcp/ip protocol stack, about TCP_ RST | TCP_ ACK correct attitude
- Service
猜你喜欢
Two position relay st2-2l/ac220v
Dls-20 double position relay 220VDC
【学习笔记】构造
Training discipline principle of robot programming
Dx-11q signal relay
Installing mongodb database in Windows Environment
二十多年来第一次!CVPR最佳学生论文授予中国高校学生!
The communication mechanism and extension of Supervisor
机器人编程的培训学科类原理
For the first time in more than 20 years! CVPR best student thesis awarded to Chinese college students!
随机推荐
ORB-SLAM2源码学习(二)地图初始化
Analyze the maker education path integrating the essence of discipline
How to do the performance pressure test of "Health Code"
Win11安装redis 数据库以及redis desktop manager的下载
Orb-slam2 source code learning (II) map initialization
Metauniverse and virtual reality (II)
CMU15445 (Fall 2019) 之 Project#1 - Buffer Pool 详解
[learning notes] double + two points
Flutter Error: Cannot run with sound null safety, because the following dependencies don‘t support
【go】go 实现行专列 将集合进行转列
【学习笔记】简单dp
Exploring the road of steam education innovation in the Internet Era
Get to know the drawing component of flutter - custompaint
Join table query select generation
染色法判断二分图
Docker deployment MySQL 8
Mustache syntax
XJY-220/43AC220V静态信号继电器
Green, green the reed. dew and frost gleam.
Principes de formation de la programmation robotique