Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get GPU Processor Usage Programmatically

Is there is anyway to get the GPU processor usage using CUDA. I want to get the processor usage of each GPU connected in a cluster and to assign the job to the GPU having least processor usage.

Operating system i am using is Windows 7 64bit. All the connected GPUs have fermi architecture

Please help.

like image 961
Sijo Avatar asked Nov 06 '25 18:11

Sijo


1 Answers

NVIDIA Management Library is a C-based API for monitoring and managing various states of the NVIDIA GPU devices. It provides a direct access to the queries and commands exposed via the cmdline tool nvidia-smi.

https://developer.nvidia.com/nvidia-management-library-nvml

like image 111
kangshiyin Avatar answered Nov 09 '25 22:11

kangshiyin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!