File size: 95 Bytes
73f8595
 
 
1
2
3
import subprocess

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