Skip to content

Commit 73e097e

Browse files
authored
Merge pull request #2509 from ROCm/rocmsmi-fix-215
[r2.15-rocm-enhanced] Adjust rocm-smi check for test scripts
2 parents 7ff6048 + a55855d commit 73e097e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/tools/ci_build/linux/rocm/run_gpu_single.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ N_BUILD_JOBS=$(grep -c ^processor /proc/cpuinfo)
2323
rocm-smi -i
2424
STATUS=$?
2525
if [ $STATUS -ne 0 ]; then TF_GPU_COUNT=1; else
26-
TF_GPU_COUNT=$(rocm-smi -i|grep 'ID' |grep 'GPU' |wc -l)
26+
TF_GPU_COUNT=$(rocm-smi -i|grep 'Device ID' |grep 'GPU' |wc -l)
2727
fi
2828
TF_TESTS_PER_GPU=1
2929
N_TEST_JOBS=$(expr ${TF_GPU_COUNT} \* ${TF_TESTS_PER_GPU})

0 commit comments

Comments
 (0)