How do you use the nvidia-smi command?

The nvidia-smi command is an abbreviation for NVIDIA System Management Interface, a command-line tool used for monitoring and managing NVIDIA GPU devices. It provides detailed information about GPU devices, such as usage, temperature, power consumption, driver versions, etc.

Here are some common uses of the nvidia-smi command:

  1. Display information about GPU devices: nvidia-smi
  2. Display real-time GPU usage: nvidia-smi -l
  3. Display information about a specific GPU device: nvidia-smi -i
  4. Show the utilization rate of the GPU device: nvidia-smi –query-gpu=utilization.gpu –format=csv
  5. Display the temperature of the GPU device: nvidia-smi –query-gpu=temperature.gpu –format=csv
  6. Display the power consumption of the GPU device: nvidia-smi –query-gpu=power.draw –format=csv.
  7. Display the driver version of the GPU device: nvidia-smi –query-gpu=driver_version –format=csv
  8. Display the memory usage of GPU devices: nvidia-smi –query-gpu=memory.used –format=csv
  9. Display the specific process’s memory usage on the GPU: nvidia-smi pmon -c 1 -s u

Please note that the nvidia-smi command requires the NVIDIA driver to be installed and properly configured in order to work correctly.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds