nvidia-smi如何工作? [英] how does nvidia-smi work?

查看:114
本文介绍了nvidia-smi如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

允许nvidia-smi提取硬件级别详细信息的内部操作是什么?即使在GPU设备上已经运行了某些进程并获得了利用率详细信息,进程的名称和ID等,该工具仍会执行.是否可以在用户级别开发此类工具?NVML有什么关系?

What is the internal operation that allows nvidia-smi fetch the hardware level details? The tool executes even when some process is already running on the GPU device and gets the utilization details, name and id of the process etc. Is it possible to develop such a tool at the user level? How is NVML related?

推荐答案

Nvidia-smi是 Tesla部署工具包中包含的SDK使用NVML进行编码.

Nvidia-smi is a thin wrapper around NVML. You can code with NVML with help of SDK contained in Tesla Deployment Kit.

nvidia-smi可以完成的所有操作都可以直接从C库NVML中查询.如果您需要在某种类型的应用程序中查询此数据,那么最好使用NVML编写(而不是解析nvidia-smi stdout(过去更改过格式))(可能更容易).

Everything that can be done with nvidia-smi can be queried straight from the C library NVML. If you need to query this data in an app of some sort, it's better (and probably easier) to write against NVML instead of parse nvidia-smi stdout (which format changed in the past).

还有 python perl 绑定.因此,您可以使用比C更高级的编程语言.

There are also python and perl bindings for NVML library. So you can use higher level programming langugage than C.

这篇关于nvidia-smi如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆