how does nvidia-smi work?

孤者浪人 提交于 2021-02-19 06:15:34

问题


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?


回答1:


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

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).

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



来源:https://stackoverflow.com/questions/14906675/how-does-nvidia-smi-work

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!