• Docs >
  • Utils >
  • torchtnt.utils.device.get_nvidia_smi_gpu_stats
Shortcuts

torchtnt.utils.device.get_nvidia_smi_gpu_stats

torchtnt.utils.device.get_nvidia_smi_gpu_stats(device: device) GPUStats

Get GPU stats from nvidia smi.

Parameters:device – A GPU torch.device to get stats from.
Returns:a dict that maps gpu stats to their values.
Keys:
  • ’utilization_gpu_percent’
  • ’utilization_memory_percent’
  • ’fan_speed_percent’
  • ’memory_used_mb’
  • ’memory_free_mb’
  • ’temperature_gpu_celsius’
  • ’temperature_memory_celsius’
Return type:dict (str, float)
Raises:FileNotFoundError – If nvidia-smi command is not found.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources