We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2cf87e commit e0d9830Copy full SHA for e0d9830
userbenchmark/release-test/monitor_proc.sh
@@ -16,8 +16,7 @@ get_gpu_max_memory_usage_cuda() {
16
local my_pid=$1
17
local max=$2
18
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.]*")
+ $(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.]*")
21
# Some processes might not use the GPU, then memory usage should be 0
22
if [ "${curr}" -eq 0 ] ; then
23
echo "${max}"
0 commit comments