Commit 30ac210e authored by xuanbaby's avatar xuanbaby
Browse files

DTK-203

fix(bug for parse rocm-smi json)
parent 662457ba
......@@ -31,7 +31,7 @@ def parse_nvidia_smi_result(smi):
output["gpuInfos"] = []
for gpuIndex, gpu in enumerate(gpuList):
if gpu == 'system':
break
continue
gpuInfo = {}
gpuInfo['index'] = gpuIndex
gpuInfo['gpuUtil'] = smi[gpu]["GPU OverDrive value (%)"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment