Skip to content

Commit

Permalink
Try another field
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Jan 27, 2025
1 parent 38b379c commit 5f60e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userbenchmark/release-test/monitor_proc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ get_gpu_max_memory_usage_cuda() {
local max=$2
local curr
# pick the process that uses the most GPU memory
curr=$(nvidia-smi dmon -s m -c 1 -o T -i 0 | tail -n +3 | awk '{print $3}' | sort -n | tail -1 | grep -o "[0-9.]*")
curr=$(nvidia-smi dmon -s m -c 1 -o T -i 0 | tail -n +3 | awk '{print $2}' | sort -n | tail -1 | grep -o "[0-9.]*")
# Some processes might not use the GPU, then memory usage should be 0
if [ "${curr}" -eq 0 ] ; then
echo "${max}"
Expand Down

0 comments on commit 5f60e00

Please sign in to comment.