chore: test
This commit is contained in:
parent
3eb6328ff1
commit
ab82c952f1
|
@ -32,6 +32,7 @@ loop_cnt=0
|
||||||
while true; do
|
while true; do
|
||||||
device_mem_usage=""
|
device_mem_usage=""
|
||||||
for ((i=0; i<device_cnt; i++)); do
|
for ((i=0; i<device_cnt; i++)); do
|
||||||
|
echo "get_mem_usage ${chip_id_arr_from_info[i]} ${i}"
|
||||||
mem_usage=$(get_mem_usage ${chip_id_arr_from_info[i]} ${i})
|
mem_usage=$(get_mem_usage ${chip_id_arr_from_info[i]} ${i})
|
||||||
device_mem_usage="${device_mem_usage}{"npu_id": ${npu_id_arr_from_info[i]}, "chip_id": ${chip_id_arr_from_info[i]}, "device_id": ${i}, "mem_usage": ${mem_usage}}, "
|
device_mem_usage="${device_mem_usage}{"npu_id": ${npu_id_arr_from_info[i]}, "chip_id": ${chip_id_arr_from_info[i]}, "device_id": ${i}, "mem_usage": ${mem_usage}}, "
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue