diff --git a/npu_status.sh b/npu_status.sh index a79339f0..e164ab77 100644 --- a/npu_status.sh +++ b/npu_status.sh @@ -14,7 +14,6 @@ npu_id_arr=(2 3 5 6) get_power_dissipation() { local npu_id="$1" - # need to varify power_dissipation=$(npu-smi info -t power -i ${npu_id} | grep 'Power Dissipation(W)' | awk '{print $4}') echo "${power_dissipation}" } @@ -22,7 +21,7 @@ get_power_dissipation() { get_mem_usage() { local chip="$1" local device="$2" - mem_usage=$(npu-smi info | grep '${chip} ${device}' | awk '{print $8}') + mem_usage=$(npu-smi info | grep "${chip} ${device}" | awk '{print $8}') echo "${mem_usage}" } @@ -32,7 +31,6 @@ loop_cnt=0 while true; do device_mem_usage="" for ((i=0; i