8000 Remove `release` configs from XLA's version of the TensorFlow bazelrc… · linux-on-ibm-z/tensorflow@dc4dbaf · GitHub
[go: up one dir, main page]

Skip to content

Commit dc4dbaf

Browse files
ddunltensorflower-gardener
authored andcommitted
Remove release configs from XLA's version of the TensorFlow bazelrc except for MacOS
PiperOrigin-RevId: 730600681
1 parent 015bab9 commit dc4dbaf

File tree

1 file changed

+1
-85
lines changed

1 file changed

+1
-85
lines changed

third_party/xla/tensorflow.bazelrc

Lines changed: 1 addition & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@
4646
# elinux_aarch64: Embedded Linux options for aarch64 (ARM64) CPU support.
4747
# elinux_armhf: Embedded Linux options for armhf (ARMv7) CPU support.
4848
#
49-
# Release build options (for all operating systems)
50-
# release_base: Common options for all builds on all operating systems.
51-
# release_cpu_linux: Toolchain and CUDA options for Linux CPU builds.
52-
# release_gpu_linux: Toolchain and CUDA options for Linux GPU builds.
53-
# release_cpu_macos: Toolchain and CUDA options for MacOS CPU builds.
54-
# release_cpu_windows: Toolchain and CUDA options for Windows CPU builds.
55-
5649
# Default build options. These are applied first and unconditionally.
5750

5851
# For projects which use TensorFlow as part of a Bazel build process, putting
@@ -515,74 +508,13 @@ try-import %workspace%/.tf_configure.bazelrc
515508
# Load rc file with user-specific options.
516509
try-import %workspace%/.bazelrc.user
517510

518-
# Here are bazelrc configs for release builds
519-
# Build TensorFlow v2.
520-
test:release_base --test_size_filters=small,medium
521-
522-
# Enable support for all targets
523-
build:release_base --config=cpu_cross
524-
525-
# Ensure release_base is set on linux
526-
build:release_linux_base --config=release_base
527-
528-
# Disable clang extension that rejects type definitions within offsetof.
529-
# This was added in clang-16 by https://reviews.llvm.org/D133574.
530-
# Can be removed once upb is updated, since a type definition is used within
531-
# offset of in the current version of ubp.
532-
# See https://github.com/protocolbuffers/upb/blob/9effcbcb27f0a665f9f345030188c0b291e32482/upb/upb.c#L183.
533-
build:release_linux_base --copt=-Wno-gnu-offsetof-extensions
534-
build:release_linux_base --copt=-Wno-error=array-parameter
535-
build:release_linux_base --copt=-Wno-error=unused-command-line-argument
536-
# Set lld as the linker.
537-
build:release_linux_base --linkopt="-fuse-ld=lld"
538-
build:release_linux_base --linkopt="-lm"
539-
540-
# We have some invalid linker scripts in the build,
541-
# so we need to disable this check
542-
build:release_linux_base --linkopt=-Wl,--undefined-version
543-
544-
# Container environment settings below this point.
545-
# Use Python 3.X as installed in container image
546-
build:release_linux_base --action_env PYTHON_BIN_PATH="/usr/bin/python3"
547-
build:release_linux_base --action_env PYTHON_LIB_PATH="/usr/lib/tf_python"
548-
build:release_linux_base --python_path="/usr/bin/python3"
549-
# Set Clang as compiler. Use the actual path to clang installed in container.
550-
build:release_linux_base --repo_env=CC="/usr/lib/llvm-18/bin/clang"
551-
build:release_linux_base --repo_env=BAZEL_COMPILER="/usr/lib/llvm-18/bin/clang"
552-
# Test-related settings below this point.
553-
test:release_linux_base --build_tests_only --keep_going --test_output=errors --verbose_failures=true
554-
test:release_linux_base --local_test_jobs=HOST_CPUS
555-
# Give only the list of failed tests at the end of the log
556-
test:release_linux_base --test_summary=short
557-
558-
# Use the Clang toolchain to compile
559-
build:release_cpu_linux --config=release_linux_base
560-
build:release_cpu_linux --crosstool_top="@local_config_cuda//crosstool:toolchain"
561-
build:release_cpu_linux --repo_env=TF_SYSROOT="/dt9"
562-
# Target the AVX instruction set
563-
build:release_cpu_linux --config=avx_linux
564-
565-
build:release_gpu_linux --config=release_cpu_linux
566-
# Set up compilation CUDA version and paths and use the CUDA Clang toolchain.
567-
# Note that linux cpu and cuda builds share the same toolchain now.
568-
build:release_gpu_linux --config=cuda_clang_official
569-
# Local test jobs has to be 4 because parallel_gpu_execute is fragile, I think
570-
test:release_gpu_linux --test_timeout=300,450,1200,3600 --local_test_jobs=4 --run_under=//tools/ci_build/gpu_build:parallel_gpu_execute
571-
572-
build:release_arm64_linux --config=release_linux_base
573-
build:release_arm64_linux --config=linux_arm64
574-
build:release_arm64_linux --crosstool_top="@ml2014_clang_aarch64_config_aarch64//crosstool:toolchain"
575-
build:release_arm64_linux --config=mkl_aarch64_threadpool
576-
build:release_arm64_linux --copt=-flax-vector-conversions
577-
test:release_arm64_linux --flaky_test_attempts=3
578-
579511
build:release_cpu_macos --config=avx_linux
580512

581513
# Base build configs for macOS
582514
build:release_macos_base --define=no_nccl_support=true --output_filter=^$
583515

584516
# Ensure release_base is set on mac
585-
build:release_macos_base --config=release_base
517+
build:release_macos_base --config=cpu_cross
586518

587519
# Build configs for macOS x86
588520
build:release_macos_x86 --config=release_macos_base
@@ -610,22 +542,6 @@ test:release_macos_base --flaky_test_attempts=3
610542
# Test configs for macOS x86
611543
test:release_macos_x86 --config=release_macos_base
612544

613-
# Test configs for macOS Arm64
614-
test:release_macos_arm64 --config=release_macos_base
615-
616-
# Ensure release_base is set on windows
617-
build:release_cpu_windows --config=release_base
618-
619-
# TODO(kanglan): Update windows configs after b/289091160 is fixed
620-
build:release_cpu_windows --config=avx_win
621-
build:release_cpu_windows --define=no_tensorflow_py_deps=true
622-
623-
# Exclude TFRT integration for anything but Linux.
624-
build:macos --config=no_tfrt
625-
build:windows --config=no_tfrt
626-
build:rocm --config=no_tfrt
627-
build:no_tfrt --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/ir,tensorflow/compiler/mlir/tfrt/ir/mlrt,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ifrt,tensorflow/compiler/mlir/tfrt/tests/mlrt,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/compiler/mlir/tfrt/transforms/mlrt,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/runtime_fallback/test,tensorflow/core/runtime_fallback/test/gpu,tensorflow/core/runtime_fallback/test/saved_model,tensorflow/core/runtime_fallback/test/testdata,tensorflow/core/tfrt/stubs,tensorflow/core/tfrt/tfrt_session,tensorflow/core/tfrt/mlrt,tensorflow/core/tfrt/mlrt/attribute,tensorflow/core/tfrt/mlrt/kernel,tensorflow/core/tfrt/mlrt/bytecode,tensorflow/core/tfrt/mlrt/interpreter,tensorflow/compiler/mlir/tfrt/translate/mlrt,tensorflow/compiler/mlir/tfrt/translate/mlrt/testdata,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils,tensorflow/core/tfrt/utils/debug,tensorflow/core/tfrt/saved_model/python,tensorflow/core/tfrt/graph_executor/python,tensorflow/core/tfrt/saved_model/utils
628-
629545
# BEGIN TF CACHE HELPER OPTIONS
630546
# Options when using remote execution
631547
# WARNING: THESE OPTIONS WONT WORK IF YOU DO NOT HAVE PROPER AUTHENTICATION AND PERMISSIONS

0 commit comments

Comments
 (0)
0