test: test npu status

This commit is contained in:
wql 2024-09-18 17:28:11 +08:00
parent 7a808cbb75
commit 7f7a8201df
1 changed files with 2 additions and 0 deletions

View File

@ -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%??}"