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.
2 parents d15ac8a + f1b9fc1 commit 6e45bd0Copy full SHA for 6e45bd0
tensorflow/tools/ci_build/linux/rocm/run_gpu_multi.sh
@@ -18,6 +18,17 @@ set -e
18
set -x
19
20
N_BUILD_JOBS=$(grep -c ^processor /proc/cpuinfo)
21
+# If rocm-smi exists locally (it should) use it to find
22
+# out how many GPUs we have to test with.
23
+rocm-smi -i
24
+STATUS=$?
25
+if [ $STATUS -ne 0 ]; then TF_GPU_COUNT=1; else
26
+ TF_GPU_COUNT=$(rocm-smi -i|grep 'Device ID' |grep 'GPU' |wc -l)
27
+fi
28
+if [[ $TF_GPU_COUNT -lt 4 ]]; then
29
+ echo "Found only ${TF_GPU_COUNT} gpus, multi-gpu tests need atleast 4 gpus."
30
+ exit
31
32
N_TEST_JOBS=1 # run tests serially
33
34
echo ""
0 commit comments