fix: fix bug

This commit is contained in:
wql 2024-12-03 11:22:28 +08:00
parent ebb6f75cc0
commit 2f142b86f1
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ sleep_time=$2
is_test=$3
output_file_path="${output_dir}/npu_status_$(date +"%Y%m%d%H%M%S").json"
device_cnt=$(npu-smi info | grep '910B1' | wc -l)
device_cnt=$(npu-smi info | grep '310P3' | wc -l)
chip_id_arr_from_info=(0 1 0 1 0 1 0 1)
npu_id_arr=(0 96 32768 32896)
@ -31,7 +31,7 @@ if [ "$is_test" -eq "1" ]; then
sleep_time=10
fi
for i in {1..${cycle_cnt}}
for ((i=1; i<=cycle_cnt; i++))
do
device_mem_usage=""
for ((i=0; i<device_cnt; i++)); do