Skip to content

Commit e0d9830

Browse files
authored
Update monitor_proc.sh
1 parent e2cf87e commit e0d9830

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

userbenchmark/release-test/monitor_proc.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ get_gpu_max_memory_usage_cuda() {
1616
local my_pid=$1
1717
local max=$2
1818
local curr
19-
curr=0
20-
# $(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.]*")
19+
$(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.]*")
2120
# Some processes might not use the GPU, then memory usage should be 0
2221
if [ "${curr}" -eq 0 ] ; then
2322
echo "${max}"

0 commit comments

Comments
 (0)