Skip to content

Instantly share code, notes, and snippets.

View itsundef's full-sized avatar
☺️
:)

Prashant Kumar itsundef

☺️
:)
View GitHub Profile
@itsundef
itsundef / enhanced-nvidia-smi.md
Created May 19, 2025 12:35 — forked from padeoe/enhanced-nvidia-smi.md
Show Username & full process command with nvidia-smi

For typical use cases, I prefer using nvitop to view detailed information. This script offers a dependency-free implementation.

The script enhances the functionality of nvidia-smi and provides the following info:

  • Username
  • full process Command
  • GPU ID
  • PID

This is useful on multi-user servers and can be used to quickly identify which user is using the GPU and running what kind of program.