mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Set --jobs for macOS cross-compile builds in .bazelrc to avoid being overridden
`rbe_cross_compile_macos_x86` expands `rbe_cross_compile_base` which in turn expands `rbe_base` which has `--jobs=800`. We avoid the jobs setting being overridden by setting it after `--config rbe_cross_compile_base`. PiperOrigin-RevId: 603804012
This commit is contained in:
parent
49f220454f
commit
ebed0b006a
3
.bazelrc
3
.bazelrc
|
|
@ -879,5 +879,8 @@ build:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
|
|||
test:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
|
||||
# Increase the test timeout as tests often take longer on mac.
|
||||
test:rbe_cross_compile_macos_x86 --test_timeout=300,450,1200,3600
|
||||
# Limit jobs to 100 to avoid running into "out of memory" issues (b/316266643)
|
||||
build:rbe_cross_compile_macos_x86 --jobs=100
|
||||
test:rbe_cross_compile_macos_x86 --jobs=100
|
||||
# END MACOS CROSS-COMPILE CONFIGS
|
||||
# END CROSS-COMPILE CONFIGS
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@
|
|||
# limitations under the License.
|
||||
# ==============================================================================
|
||||
source ci/official/envs/macos_x86
|
||||
# Limit jobs to 100 to avoid running into "out of memory" issues (b/316266643)
|
||||
TFCI_BAZEL_COMMON_ARGS="--repo_env=TF_PYTHON_VERSION=$TFCI_PYTHON_VERSION --jobs=100 --config cross_compile_macos_x86"
|
||||
TFCI_BAZEL_COMMON_ARGS="--repo_env=TF_PYTHON_VERSION=$TFCI_PYTHON_VERSION --config cross_compile_macos_x86"
|
||||
TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX=cross_compile_macos_x86
|
||||
TFCI_MACOS_CROSS_COMPILE_ENABLE=1
|
||||
TFCI_MACOS_CROSS_COMPILE_SDK_DEST="tensorflow/tools/toolchains/cross_compile/cc/MacOSX.sdk"
|
||||
|
|
|
|||
3
third_party/xla/.bazelrc
vendored
3
third_party/xla/.bazelrc
vendored
|
|
@ -879,5 +879,8 @@ build:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
|
|||
test:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
|
||||
# Increase the test timeout as tests often take longer on mac.
|
||||
test:rbe_cross_compile_macos_x86 --test_timeout=300,450,1200,3600
|
||||
# Limit jobs to 100 to avoid running into "out of memory" issues (b/316266643)
|
||||
build:rbe_cross_compile_macos_x86 --jobs=100
|
||||
test:rbe_cross_compile_macos_x86 --jobs=100
|
||||
# END MACOS CROSS-COMPILE CONFIGS
|
||||
# END CROSS-COMPILE CONFIGS
|
||||
|
|
|
|||
3
third_party/xla/third_party/tsl/.bazelrc
vendored
3
third_party/xla/third_party/tsl/.bazelrc
vendored
|
|
@ -879,5 +879,8 @@ build:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
|
|||
test:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
|
||||
# Increase the test timeout as tests often take longer on mac.
|
||||
test:rbe_cross_compile_macos_x86 --test_timeout=300,450,1200,3600
|
||||
# Limit jobs to 100 to avoid running into "out of memory" issues (b/316266643)
|
||||
build:rbe_cross_compile_macos_x86 --jobs=100
|
||||
test:rbe_cross_compile_macos_x86 --jobs=100
|
||||
# END MACOS CROSS-COMPILE CONFIGS
|
||||
# END CROSS-COMPILE CONFIGS
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user