From 0640628e4656b150505748277442bf951cde414f Mon Sep 17 00:00:00 2001 From: wql Date: Wed, 11 Sep 2024 11:10:19 +0800 Subject: [PATCH] fix: fix bug --- npu_status.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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