This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# author: Aaditya Prakash | |
# NVIDIA-SMI does not show the full command, and when it was launched and its RAM usage. | |
# PS does but it does but you need PIDs for that | |
# lsof /dev/nvidia gives PIDs but only for the user invoking it | |
# usage: | |
# python programs_on_gpu.py | |
# Sample Output |