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