We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nvidia-smi topo -m
1 parent 1f5d13a commit dc96fd5Copy full SHA for dc96fd5
collect_env.py
@@ -105,8 +105,14 @@ def run(command):
105
else:
106
enc = locale.getpreferredencoding()
107
output = raw_output.decode(enc)
108
+ if command == 'nvidia-smi topo -m':
109
+ # don't remove the leading whitespace of `nvidia-smi topo -m`
110
+ # because they are meaningful
111
+ output = output.rstrip()
112
+ else:
113
+ output = output.strip()
114
err = raw_err.decode(enc)
- return rc, output.strip(), err.strip()
115
+ return rc, output, err.strip()
116
117
118
def run_and_read_all(run_lambda, command):
0 commit comments