File size: 95 Bytes
6ba657a
 
 
1
2
3
import subprocess

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