File size: 95 Bytes
254b8f4
 
 
1
2
3
import subprocess

print(subprocess.run(["nvidia-smi"], capture_output=True, text=True).stdout)