File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
tensorflow/tools/ci_build Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 47
47
# TF_BUILD_BAZEL_CLEAN, if set to any non-empty and non-0 value, directs the
48
48
# script to perform bazel clean prior to main build and test steps.
49
49
#
50
- # TF_BUILD_USE_GPU, if set to 1, limits the number of concurrent tests to
51
- # the number stored in TF_GPU_COUNT and assigns each test to a different GPU.
52
- #
53
50
# TF_GPU_COUNT, Set the number of GPUs in the system. We run only this many
54
51
# concurrent tests when running GPU tests.
55
52
#
@@ -410,7 +407,7 @@ SKIP_COUNTER=0
410
407
FAILED_TESTS=" "
411
408
FAILED_TEST_LOGS=" "
412
409
413
- if [[ " ${TF_BUILD_USE_GPU } " == " 1" ]]; then
410
+ if [[ " ${IS_GPU } " == " 1" ]]; then
414
411
N_JOBS=$TF_GPU_COUNT
415
412
else
416
413
N_JOBS=$( grep -c ^processor /proc/cpuinfo)
@@ -484,7 +481,7 @@ while true; do
484
481
TEST_LOGS=" ${TEST_LOGS} ${TEST_LOG} "
485
482
486
483
# Launch test asynchronously
487
- if [[ " ${TF_BUILD_USE_GPU } " == " 1" ]]; then
484
+ if [[ " ${IS_GPU } " == " 1" ]]; then
488
485
" ${SCRIPT_DIR} /../gpu_build/parallel_gpu_execute.sh" \
489
486
" ${SCRIPT_DIR} /py_test_delegate.sh" \
490
487
" ${PYTHON_BIN_PATH} " " ${PY_TEST_DIR} /${TEST_BASENAME} " " ${TEST_LOG} " &
Original file line number Diff line number Diff line change @@ -103,10 +103,8 @@ WORKSPACE="${WORKSPACE:-$(upsearch WORKSPACE)}"
103
103
BUILD_TAG=" ${BUILD_TAG:- tf_ci} "
104
104
105
105
# Add extra params for cuda devices and libraries for GPU container.
106
- if [ " ${CONTAINER_TYPE} " == " gpu" ]; then
107
- # GPU pip tests-on-install concurrency is limited to the number of GPUs.
108
- GPU_EXTRA_PARAMS=" ${GPU_EXTRA_PARAMS} -e TF_BUILD_USE_GPU=1"
109
- else
106
+ # And clear them if we are not building for GPU.
107
+ if [ " ${CONTAINER_TYPE} " != " gpu" ]; then
110
108
GPU_EXTRA_PARAMS=" "
111
109
fi
112
110
You can’t perform that action at this time.
0 commit comments