Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit ec04ad6

Browse files
committed
issue #30: gpu-health.sh format fix
1 parent e5b274c commit ec04ad6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

hcdiag/src/tests/gpu-health/gpu-health.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ fi
3131
thisdir=`dirname $0`
3232
GPU_HEALTH=$thisdir/gpu-health
3333

34-
EXPECTED_NVLINK_XFER_SPEED=40 # GB/s
34+
EXPECTED_NVLINK_XFER_SPEED=39 # GB/s
3535
EXPECTED_GPU_MEM_BANDWITH=800 # GB/s
3636
EXPECTED_DGEMM_FLOPS=7 # TFlofs
3737
if [ $# -gt 0 ]; then EXPECTED_NVLINK_XFER_SPEED=$1; fi
3838
if [ $# -gt 1 ]; then EXPECTED_GPU_MEM_BANDWITH=$2; fi
3939
if [ $# -gt 2 ]; then EXPECTED_DGEMM_FLOPS=$3; fi
4040

41-
# around 40 GB/sec for nvlink transfer to devices in the same socket ...
41+
# around 39 GB/sec for nvlink transfer to devices in the same socket ...
4242
# around 800 GB/sec for bandwidth,
4343
# around 7 TFlops dgemm
4444
# checks gpu memory bw, gpu dgemm flops, nvlink transfer speeds
@@ -90,14 +90,14 @@ if [ $rc -eq 0 ]; then
9090
# let's parse the output
9191
while [ $i -lt $n ]; do
9292
counter=0
93-
echo ""
93+
echo -e "\n\n"
9494
while read -r line; do
95-
echo -e "Checking GPU $counter: ${eyecatcher[$i]}"
95+
echo "Checking GPU $counter: ${eyecatcher[$i]}"
9696
aline=($line)
9797
value=${aline[${pos[$i]}]}
9898
ivalue=${value%.*}
9999
if [ $ivalue -lt ${EXPECTED_VALUE[$i]} ]; then
100-
echo "Error, expecting: ${EXPECTED_VALUE[$i]} ${unit[$i]}, got: $value ${unit[$i]}."
100+
echo -e "ERROR, expecting: ${EXPECTED_VALUE[$i]} ${unit[$i]}, got: $value ${unit[$i]}."
101101
let err+=1
102102
fi
103103
let counter+=1
@@ -112,10 +112,10 @@ fi
112112

113113

114114
if [ $err -eq 0 ] && [ $rc -eq 0 ] ; then
115-
echo "$me test PASS, rc=0"
115+
echo -e "\n$me test PASS, rc=0"
116116
else
117117
if [ $rc -eq 0 ]; then rc=1; fi
118-
echo "$me test FAIL, rc=$rc"
118+
echo -e "\n$me test FAIL, rc=$rc"
119119
fi
120120

121121
exit $rc

0 commit comments

Comments
 (0)