test: test npu status
This commit is contained in:
parent
7a808cbb75
commit
7f7a8201df
|
@ -28,7 +28,9 @@ do
|
|||
device_mem_usage=""
|
||||
for ((i=0; i<device_cnt; i++)); do
|
||||
mem_usage=$(get_mem_usage ${i})
|
||||
echo "${mem_usage}"
|
||||
device_mem_usage="${device_mem_usage}{\"npu_id\": ${i}, \"mem_usage_percent\": ${mem_usage}}, "
|
||||
echo "${device_mem_usage}"
|
||||
done
|
||||
device_mem_usage="${device_mem_usage%??}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue