Skip to content

Commit

Permalink
Merge pull request #2507 from ROCm/rocmsmi-fix-QA-62
Browse files Browse the repository at this point in the history
[develop-upstream-QA-rocm62] Adjust rocm-smi check for test scripts
  • Loading branch information
jayfurmanek committed Apr 30, 2024
2 parents 03b7570 + 5a8882b commit be67a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/tools/ci_build/linux/rocm/run_gpu_single.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ N_BUILD_JOBS=$(grep -c ^processor /proc/cpuinfo)
rocm-smi -i
STATUS=$?
if [ $STATUS -ne 0 ]; then TF_GPU_COUNT=1; else
TF_GPU_COUNT=$(rocm-smi -i|grep 'ID' |grep 'GPU' |wc -l)
TF_GPU_COUNT=$(rocm-smi -i|grep 'Device ID' |grep 'GPU' |wc -l)
fi
TF_TESTS_PER_GPU=1
N_TEST_JOBS=$(expr ${TF_GPU_COUNT} \* ${TF_TESTS_PER_GPU})
Expand Down

0 comments on commit be67a00

Please sign in to comment.