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