File size: 94 Bytes
9b13459
 
1
2
import subprocess
print(subprocess.run(["nvidia-smi"], capture_output=True, text=True).stdout)