Skip to content

Commit eedc8d2

Browse files
Improve CI build speed by letting bazel decide how many worker threads to have (#9209)
Co-authored-by: Zhanyong Wan <[email protected]>
1 parent 7ce8493 commit eedc8d2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/_build_plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
image: ${{ inputs.dev-image }}
3434
env:
3535
GCLOUD_SERVICE_KEY: ${{ secrets.gcloud-service-key }}
36-
BAZEL_JOBS: 16
36+
BAZEL_JOBS: '' # Let bazel decide the parallelism based on the number of CPUs.
3737
BAZEL_REMOTE_CACHE: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
3838
steps:
3939
- name: Checkout actions

.github/workflows/_build_torch_xla.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
env:
3939
GCLOUD_SERVICE_KEY: ${{ secrets.gcloud-service-key }}
4040
BAZEL_REMOTE_CACHE: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
41-
BAZEL_JOBS: 16
41+
BAZEL_JOBS: '' # Let bazel decide the parallelism based on the number of CPUs.
4242
BUILD_CPP_TESTS: 1
4343
steps:
4444
# Need to check out local composite actions before using them

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
RUN_TORCH_MP_OP_TESTS: ${{ matrix.run_torch_mp_op_tests }}
7979
RUN_CPP_TESTS1: ${{ matrix.run_cpp_tests1 }}
8080
RUN_CPP_TESTS2: ${{ matrix.run_cpp_tests2 }}
81-
BAZEL_JOBS: 16
81+
BAZEL_JOBS: '' # Let bazel decide the parallelism based on the number of CPUs.
8282
BAZEL_REMOTE_CACHE: 1
8383
steps:
8484
- name: Checkout actions

.github/workflows/_test_requiring_torch_cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
timeout-minutes: ${{ inputs.timeout-minutes }}
4949
env:
5050
USE_COVERAGE: ${{ inputs.collect-coverage && '1' || '0' }}
51-
BAZEL_JOBS: 16
51+
BAZEL_JOBS: '' # Let bazel decide the parallelism based on the number of CPUs.
5252
BAZEL_REMOTE_CACHE: 1
5353
steps:
5454
- name: Checkout actions

.github/workflows/build_upstream_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
timeout-minutes: 30
1515
env:
1616
ECR_DOCKER_IMAGE_BASE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/xla_base
17-
BAZEL_JOBS: 16
17+
BAZEL_JOBS: '' # Let bazel decide the parallelism based on the number of CPUs.
1818
steps:
1919
# See https://github.com/actions/checkout/issues/1014#issuecomment-1906802802
2020
- name: Clean up workspace

0 commit comments

Comments
 (0)