Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 1 | # TensorFlow Bazel configuration file. |
| 2 | # This file tries to group and simplify build options for TensorFlow |
| 3 | # |
| 4 | # ----CONFIG OPTIONS---- |
| 5 | # Android options: |
| 6 | # android: |
| 7 | # android_arm: |
Johan Nordström | f94a579 | 2020-08-25 21:18:16 +0200 | [diff] [blame] | 8 | # android_arm64: |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 9 | # android_x86: |
| 10 | # android_x86_64: |
| 11 | # |
| 12 | # iOS options: |
| 13 | # ios: |
| 14 | # ios_armv7: |
| 15 | # ios_arm64: |
YoungSeok Yoon | 29e6eaf | 2019-11-22 18:59:46 -0800 | [diff] [blame] | 16 | # ios_i386: |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 17 | # ios_x86_64: |
| 18 | # ios_fat: |
| 19 | # |
Yun Peng | bab0d14 | 2020-12-04 14:09:19 +0100 | [diff] [blame] | 20 | # Macosx options |
| 21 | # darwin_arm64: |
| 22 | # |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 23 | # Compiler options: |
| 24 | # cuda_clang: Use clang when building CUDA code. |
Mihai Maruseac | 9f62efe | 2020-08-08 18:06:25 -0700 | [diff] [blame] | 25 | # c++17: Build with C++17 options (links with libc++) |
| 26 | # c++1z: Build with C++17 options (links with libc++) |
| 27 | # c++17_gcc: Build with C++17 options (links with stdlibc++) |
| 28 | # c++1z_gcc: Build with C++17 options (links with stdlibc++) |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 29 | # avx_linux: Build with avx instruction set on linux. |
| 30 | # avx2_linux: Build with avx2 instruction set on linux. |
Sven-Hendrik Haase | dc2e5bd | 2020-03-24 03:47:17 +0100 | [diff] [blame] | 31 | # native_arch_linux: Build with instruction sets available to the host machine on linux |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 32 | # avx_win: Build with avx instruction set on windows |
| 33 | # avx2_win: Build with avx2 instruction set on windows |
| 34 | # |
| 35 | # Other build options: |
| 36 | # short_logs: Only log errors during build, skip warnings. |
Gunhan Gulsoy | f9dd454 | 2020-07-22 16:10:48 -0700 | [diff] [blame] | 37 | # verbose_logs: Show all compiler warnings during build. |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 38 | # monolithic: Build all TF C++ code into a single shared object. |
| 39 | # dynamic_kernels: Try to link all kernels dynamically (experimental). |
Mihai Maruseac | 950cffc | 2020-06-16 16:51:59 -0700 | [diff] [blame] | 40 | # libc++: Link against libc++ instead of stdlibc++ |
Advait Jain | 38f8ad1 | 2021-01-20 14:46:12 -0800 | [diff] [blame] | 41 | # asan: Build with the clang address sanitizer |
| 42 | # msan: Build with the clang memory sanitizer |
| 43 | # ubsan: Build with the clang undefined behavior sanitizer |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 44 | # dbg: Build with debug info |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 45 | # |
| 46 | # |
| 47 | # TF version options; |
| 48 | # v1: Build TF V1 (without contrib) |
| 49 | # v2: Build TF v2 |
| 50 | # |
| 51 | # Feature and Third party library support options: |
Gunhan Gulsoy | f4edbd9 | 2020-02-27 16:07:32 -0800 | [diff] [blame] | 52 | # xla: Build TF with XLA |
Frank Chen | cf00e55 | 2020-06-18 10:39:58 -0700 | [diff] [blame] | 53 | # tpu: Build TF with TPU support |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 54 | # cuda: Build with full cuda support. |
| 55 | # rocm: Build with AMD GPU support (rocm). |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 56 | # mkl: Enable full mkl support. |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 57 | # tensorrt: Enable Tensorrt support. |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 58 | # numa: Enable numa using hwloc. |
| 59 | # noaws: Disable AWS S3 storage support |
| 60 | # nogcp: Disable GCS support. |
| 61 | # nohdfs: Disable hadoop hdfs support. |
| 62 | # nonccl: Disable nccl support. |
| 63 | # |
| 64 | # |
| 65 | # Remote build execution options (only configured to work with TF team projects for now.) |
Christian Sigg | 18569dd | 2020-06-22 11:08:36 -0700 | [diff] [blame] | 66 | # rbe: General RBE options shared by all flavors. |
| 67 | # rbe_linux: General RBE options used on all linux builds. |
| 68 | # rbe_win: General RBE options used on all windows builds. |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 69 | # |
Christian Sigg | 18569dd | 2020-06-22 11:08:36 -0700 | [diff] [blame] | 70 | # rbe_cpu_linux: RBE options to build with only CPU support. |
| 71 | # rbe_linux_cuda_nvcc_py*: RBE options to build with GPU support using nvcc. |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 72 | # |
| 73 | # rbe_linux_py2: Linux Python 2 RBE config. |
| 74 | # rbe_linux_py3: Linux Python 3 RBE config |
| 75 | # |
| 76 | # rbe_win_py37: Windows Python 3.7 RBE config |
Gunhan Gulsoy | 0b5f6be | 2020-01-30 10:46:31 -0800 | [diff] [blame] | 77 | # rbe_win_py38: Windows Python 3.8 RBE config |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 78 | # |
| 79 | # tensorflow_testing_rbe_linux: RBE options to use RBE with tensorflow-testing project on linux |
| 80 | # tensorflow_testing_rbe_win: RBE options to use RBE with tensorflow-testing project on windows |
| 81 | # |
Terry Heo | 4961f18 | 2020-04-13 18:18:44 -0700 | [diff] [blame] | 82 | # Embedded Linux options (experimental and only tested with TFLite build yet) |
| 83 | # elinux: General Embedded Linux options shared by all flavors. |
| 84 | # elinux_aarch64: Embedded Linux options for aarch64 (ARM64) CPU support. |
| 85 | # elinux_armhf: Embedded Linux options for armhf (ARMv7) CPU support. |
Amit Patankar | 4e7eb7f | 2020-07-13 10:35:44 -0700 | [diff] [blame] | 86 | # |
| 87 | # Release build options (for all operating systems) |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 88 | # release_base: Common options for all builds on all operating systems. |
| 89 | # release_gpu_base: Common options for GPU builds on Linux and Windows. |
| 90 | # release_cpu_linux: Toolchain and CUDA options for Linux CPU builds. |
| 91 | # release_cpu_macos: Toolchain and CUDA options for MacOS CPU builds. |
| 92 | # release_gpu_linux: Toolchain and CUDA options for Linux GPU builds. |
| 93 | # release_cpu_windows: Toolchain and CUDA options for Windows CPU builds. |
| 94 | # release_gpu_windows: Toolchain and CUDA options for Windows GPU builds. |
| 95 | |
| 96 | # Default build options. These are applied first and unconditionally. |
| 97 | |
| 98 | # For projects which use TensorFlow as part of a Bazel build process, putting |
| 99 | # nothing in a bazelrc will default to a monolithic build. The following line |
| 100 | # opts in to modular op registration support by default. |
| 101 | build --define framework_shared_object=true |
| 102 | |
| 103 | # For workaround https://github.com/bazelbuild/bazel/issues/8772 with Bazel >= 0.29.1 |
| 104 | build --java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain |
| 105 | build --host_java_toolchain=@tf_toolchains//toolchains/java:tf_java_toolchain |
| 106 | |
| 107 | build --define=use_fast_cpp_protos=true |
| 108 | build --define=allow_oversize_protos=true |
| 109 | |
| 110 | build --spawn_strategy=standalone |
| 111 | build -c opt |
| 112 | |
| 113 | # Make Bazel print out all options from rc files. |
| 114 | build --announce_rc |
| 115 | |
| 116 | build --define=grpc_no_ares=true |
| 117 | |
| 118 | # See https://github.com/bazelbuild/bazel/issues/7362 for information on what |
| 119 | # --incompatible_remove_legacy_whole_archive flag does. |
| 120 | # This flag is set to true in Bazel 1.0 and newer versions. We tried to migrate |
| 121 | # Tensorflow to the default, however test coverage wasn't enough to catch the |
| 122 | # errors. |
| 123 | # There is ongoing work on Bazel team's side to provide support for transitive |
| 124 | # shared libraries. As part of migrating to transitive shared libraries, we |
| 125 | # hope to provide a better mechanism for control over symbol exporting, and |
| 126 | # then tackle this issue again. |
| 127 | # |
| 128 | # TODO: Remove this line once TF doesn't depend on Bazel wrapping all library |
| 129 | # archives in -whole_archive -no_whole_archive. |
| 130 | build --noincompatible_remove_legacy_whole_archive |
| 131 | |
| 132 | build --enable_platform_specific_config |
| 133 | |
| 134 | # Enable XLA support by default. |
| 135 | build --define=with_xla_support=true |
| 136 | |
| 137 | build --config=short_logs |
| 138 | |
| 139 | build --config=v2 |
| 140 | |
| 141 | # Disable AWS/HDFS support by default |
| 142 | build --define=no_aws_support=true |
| 143 | build --define=no_hdfs_support=true |
| 144 | |
| 145 | # Default options should come above this line. |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 146 | |
Mihai Maruseac | 950cffc | 2020-06-16 16:51:59 -0700 | [diff] [blame] | 147 | # Allow builds using libc++ as a linker library |
| 148 | # This is mostly for OSSFuzz, so we also pass in the flags from environment to clean build file |
| 149 | build:libc++ --action_env=CC |
| 150 | build:libc++ --action_env=CXX |
| 151 | build:libc++ --action_env=CXXFLAGS=-stdlib=libc++ |
| 152 | build:libc++ --action_env=PATH |
| 153 | build:libc++ --define force_libcpp=enabled |
| 154 | build:libc++ --linkopt -fuse-ld=lld |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 155 | |
Austin Anderson | 0f68a22 | 2018-01-10 15:16:01 -0800 | [diff] [blame] | 156 | # Android configs. Bazel needs to have --cpu and --fat_apk_cpu both set to the |
| 157 | # target CPU to build transient dependencies correctly. See |
| 158 | # https://docs.bazel.build/versions/master/user-manual.html#flag--fat_apk_cpu |
Michael Case | d31531a | 2018-01-05 14:09:41 -0800 | [diff] [blame] | 159 | build:android --crosstool_top=//external:android/crosstool |
| 160 | build:android --host_crosstool_top=@bazel_tools//tools/cpp:toolchain |
| 161 | build:android_arm --config=android |
| 162 | build:android_arm --cpu=armeabi-v7a |
Austin Anderson | 0f68a22 | 2018-01-10 15:16:01 -0800 | [diff] [blame] | 163 | build:android_arm --fat_apk_cpu=armeabi-v7a |
Michael Case | d31531a | 2018-01-05 14:09:41 -0800 | [diff] [blame] | 164 | build:android_arm64 --config=android |
| 165 | build:android_arm64 --cpu=arm64-v8a |
Austin Anderson | 0f68a22 | 2018-01-10 15:16:01 -0800 | [diff] [blame] | 166 | build:android_arm64 --fat_apk_cpu=arm64-v8a |
Joe Bowser | 560cdce | 2019-04-23 10:22:12 -0700 | [diff] [blame] | 167 | build:android_x86 --config=android |
| 168 | build:android_x86 --cpu=x86 |
Joe Bowser | 2f0654c | 2019-05-13 13:28:47 -0700 | [diff] [blame] | 169 | build:android_x86 --fat_apk_cpu=x86 |
Joe Bowser | 560cdce | 2019-04-23 10:22:12 -0700 | [diff] [blame] | 170 | build:android_x86_64 --config=android |
| 171 | build:android_x86_64 --cpu=x86_64 |
| 172 | build:android_x86_64 --fat_apk_cpu=x86_64 |
Michael Case | d31531a | 2018-01-05 14:09:41 -0800 | [diff] [blame] | 173 | |
A. Unique TensorFlower | dc34ddc | 2019-03-01 14:37:15 -0800 | [diff] [blame] | 174 | # Sets the default Apple platform to macOS. |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 175 | build:macos --apple_platform_type=macos |
| 176 | |
| 177 | # gRPC on MacOS requires this #define |
| 178 | build:macos --copt=-DGRPC_BAZEL_BUILD |
| 179 | |
| 180 | # Settings for MacOS on ARM CPUs. |
| 181 | build:macos_arm64 --cpu=darwin_arm64 |
A. Unique TensorFlower | dc34ddc | 2019-03-01 14:37:15 -0800 | [diff] [blame] | 182 | |
A. Unique TensorFlower | 32aaaec | 2019-09-17 23:21:24 -0700 | [diff] [blame] | 183 | # iOS configs for each architecture and the fat binary builds. |
| 184 | build:ios --apple_platform_type=ios |
| 185 | build:ios --apple_bitcode=embedded --copt=-fembed-bitcode |
YoungSeok Yoon | 05ed82f | 2019-12-02 20:43:51 -0800 | [diff] [blame] | 186 | build:ios --copt=-Wno-c++11-narrowing |
A. Unique TensorFlower | 32aaaec | 2019-09-17 23:21:24 -0700 | [diff] [blame] | 187 | build:ios_armv7 --config=ios |
| 188 | build:ios_armv7 --cpu=ios_armv7 |
A. Unique TensorFlower | 32aaaec | 2019-09-17 23:21:24 -0700 | [diff] [blame] | 189 | build:ios_arm64 --config=ios |
| 190 | build:ios_arm64 --cpu=ios_arm64 |
YoungSeok Yoon | 29e6eaf | 2019-11-22 18:59:46 -0800 | [diff] [blame] | 191 | build:ios_i386 --config=ios |
| 192 | build:ios_i386 --cpu=ios_i386 |
A. Unique TensorFlower | 32aaaec | 2019-09-17 23:21:24 -0700 | [diff] [blame] | 193 | build:ios_x86_64 --config=ios |
| 194 | build:ios_x86_64 --cpu=ios_x86_64 |
| 195 | build:ios_fat --config=ios |
YoungSeok Yoon | 29e6eaf | 2019-11-22 18:59:46 -0800 | [diff] [blame] | 196 | build:ios_fat --ios_multi_cpus=armv7,arm64,i386,x86_64 |
A. Unique TensorFlower | 32aaaec | 2019-09-17 23:21:24 -0700 | [diff] [blame] | 197 | |
Michael Case | d31531a | 2018-01-05 14:09:41 -0800 | [diff] [blame] | 198 | # Config to use a mostly-static build and disable modular op registration |
| 199 | # support (this will revert to loading TensorFlow with RTLD_GLOBAL in Python). |
| 200 | # By default, TensorFlow will build with a dependence on |
| 201 | # //tensorflow:libtensorflow_framework.so. |
| 202 | build:monolithic --define framework_shared_object=false |
| 203 | |
Michael Case | d31531a | 2018-01-05 14:09:41 -0800 | [diff] [blame] | 204 | # Please note that MKL on MacOS or windows is still not supported. |
| 205 | # If you would like to use a local MKL instead of downloading, please set the |
| 206 | # environment variable "TF_MKL_ROOT" every time before build. |
A. Unique TensorFlower | c63d21b | 2018-09-25 22:57:54 -0700 | [diff] [blame] | 207 | build:mkl --define=build_with_mkl=true --define=enable_mkl=true |
Penporn Koanantakool | 044b34b | 2019-01-07 11:13:45 -0800 | [diff] [blame] | 208 | build:mkl --define=tensorflow_mkldnn_contraction_kernel=0 |
ag.ramesh | d0c5103 | 2020-10-17 16:33:33 -0700 | [diff] [blame] | 209 | build:mkl --define=build_with_openmp=true |
Michael Case | d31531a | 2018-01-05 14:09:41 -0800 | [diff] [blame] | 210 | build:mkl -c opt |
| 211 | |
Srinivasan Narayanamoorthy | 3dcace4 | 2020-05-13 13:47:15 -0700 | [diff] [blame] | 212 | # config to build OneDNN backend with a user specified threadpool. |
Srinivasan Narayanamoorthy | d0b0e9c | 2020-05-08 13:32:39 -0700 | [diff] [blame] | 213 | build:mkl_threadpool --define=build_with_mkl=true --define=enable_mkl=true |
| 214 | build:mkl_threadpool --define=tensorflow_mkldnn_contraction_kernel=0 |
ag.ramesh | abba54a | 2020-07-22 18:10:21 -0700 | [diff] [blame] | 215 | build:mkl_threadpool --define=build_with_mkl_opensource=true |
Srinivasan Narayanamoorthy | d0b0e9c | 2020-05-08 13:32:39 -0700 | [diff] [blame] | 216 | build:mkl_threadpool -c opt |
ag.ramesh | abba54a | 2020-07-22 18:10:21 -0700 | [diff] [blame] | 217 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 218 | # Config setting to build oneDNN with Compute Library for the Arm Architecture (ACL). |
| 219 | # This build is for the inference regime only. |
cfRod | 1bcd2da | 2020-10-08 17:23:11 +0100 | [diff] [blame] | 220 | build:mkl_aarch64 --define=build_with_mkl_aarch64=true --define=enable_mkl=true |
| 221 | build:mkl_aarch64 --define=tensorflow_mkldnn_contraction_kernel=0 |
| 222 | build:mkl_aarch64 --define=build_with_mkl_opensource=true |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 223 | build:mkl_aarch64 --define=build_with_openmp=true |
cfRod | 1bcd2da | 2020-10-08 17:23:11 +0100 | [diff] [blame] | 224 | build:mkl_aarch64 -c opt |
| 225 | |
A. Unique TensorFlower | fef5167 | 2019-05-23 04:19:20 -0700 | [diff] [blame] | 226 | # This config refers to building CUDA op kernels with nvcc. |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 227 | build:cuda --repo_env TF_NEED_CUDA=1 |
| 228 | build:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain |
| 229 | build:cuda --@local_config_cuda//:enable_cuda |
A. Unique TensorFlower | fef5167 | 2019-05-23 04:19:20 -0700 | [diff] [blame] | 230 | |
| 231 | # This config refers to building CUDA op kernels with clang. |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 232 | build:cuda_clang --config=cuda |
| 233 | build:cuda_clang --repo_env TF_CUDA_CLANG=1 |
| 234 | build:cuda_clang --@local_config_cuda//:cuda_compiler=clang |
A. Unique TensorFlower | fef5167 | 2019-05-23 04:19:20 -0700 | [diff] [blame] | 235 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 236 | # Debug config |
| 237 | build:dbg -c dbg |
| 238 | # Only include debug info for files under tensorflow/, excluding kernels, to |
| 239 | # reduce the size of the debug info in the binary. This is because if the debug |
| 240 | # sections in the ELF binary are too large, errors can occur. See |
| 241 | # https://github.com/tensorflow/tensorflow/issues/48919. |
| 242 | # Users can still include debug info for a specific kernel, e.g. with: |
| 243 | # --config=dbg --per_file_copt=+tensorflow/core/kernels/identity_op.*@-g |
| 244 | build:dbg --per_file_copt=+.*,-tensorflow.*@-g0 |
| 245 | build:dbg --per_file_copt=+tensorflow/core/kernels.*@-g0 |
Bas Aarts | 56ec786 | 2019-11-08 10:36:51 -0800 | [diff] [blame] | 246 | # for now, disable arm_neon. see: https://github.com/tensorflow/tensorflow/issues/33360 |
| 247 | build:dbg --cxxopt -DTF_LITE_DISABLE_X86_NEON |
Bas Aarts | cd8b64f | 2020-05-06 15:10:33 -0700 | [diff] [blame] | 248 | # AWS SDK must be compiled in release mode. see: https://github.com/tensorflow/tensorflow/issues/37498 |
| 249 | build:dbg --copt -DDEBUG_BUILD |
Bas Aarts | 56ec786 | 2019-11-08 10:36:51 -0800 | [diff] [blame] | 250 | |
Frank Chen | cf00e55 | 2020-06-18 10:39:58 -0700 | [diff] [blame] | 251 | # Config to build TPU backend |
| 252 | build:tpu --define=with_tpu_support=true |
| 253 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 254 | build:tensorrt --repo_env TF_NEED_TENSORRT=1 |
A. Unique TensorFlower | aaa5600 | 2017-05-02 08:25:23 -0800 | [diff] [blame] | 255 | |
Wen-Heng (Jack) Chung | 69d3b8f | 2018-06-22 23:09:43 -0500 | [diff] [blame] | 256 | build:rocm --crosstool_top=@local_config_rocm//crosstool:toolchain |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 257 | build:rocm --define=using_rocm_hipcc=true |
| 258 | build:rocm --repo_env TF_NEED_ROCM=1 |
A. Unique TensorFlower | aaa5600 | 2017-05-02 08:25:23 -0800 | [diff] [blame] | 259 | |
Gunhan Gulsoy | 3da0dff | 2018-09-26 11:55:50 -0700 | [diff] [blame] | 260 | # Options extracted from configure script |
A. Unique TensorFlower | a6bf9c8 | 2019-02-26 10:08:35 -0800 | [diff] [blame] | 261 | build:numa --define=with_numa_support=true |
Gunhan Gulsoy | 3da0dff | 2018-09-26 11:55:50 -0700 | [diff] [blame] | 262 | |
Gunhan Gulsoy | 3437098 | 2018-10-12 15:26:01 -0700 | [diff] [blame] | 263 | # Options to disable default on features |
| 264 | build:noaws --define=no_aws_support=true |
| 265 | build:nogcp --define=no_gcp_support=true |
| 266 | build:nohdfs --define=no_hdfs_support=true |
Gunhan Gulsoy | eea8168 | 2018-11-26 16:51:23 -0800 | [diff] [blame] | 267 | build:nonccl --define=no_nccl_support=true |
Gunhan Gulsoy | 3437098 | 2018-10-12 15:26:01 -0700 | [diff] [blame] | 268 | |
A. Unique TensorFlower | c34265b | 2020-06-15 17:35:30 -0700 | [diff] [blame] | 269 | build:stackdriver_support --define=stackdriver_support=true |
| 270 | |
Gunhan Gulsoy | 5a5e42e | 2018-08-03 14:44:58 -0700 | [diff] [blame] | 271 | # Modular TF build options |
| 272 | build:dynamic_kernels --define=dynamic_loaded_kernels=true |
Gunhan Gulsoy | ce12659 | 2018-10-18 14:07:57 -0700 | [diff] [blame] | 273 | build:dynamic_kernels --copt=-DAUTOLOAD_DYNAMIC_KERNELS |
Jason Zaman | 05b43db | 2018-08-15 15:20:56 +0800 | [diff] [blame] | 274 | |
Gunhan Gulsoy | 3bc5132 | 2019-02-01 13:27:15 -0800 | [diff] [blame] | 275 | # Build TF with C++ 17 features. |
| 276 | build:c++17 --cxxopt=-std=c++1z |
| 277 | build:c++17 --cxxopt=-stdlib=libc++ |
A. Unique TensorFlower | fef5167 | 2019-05-23 04:19:20 -0700 | [diff] [blame] | 278 | build:c++1z --config=c++17 |
Mihai Maruseac | ddba76d | 2020-08-08 18:02:41 -0700 | [diff] [blame] | 279 | build:c++17_gcc --cxxopt=-std=c++1z |
| 280 | build:c++1z_gcc --config=c++17_gcc |
Gunhan Gulsoy | 3bc5132 | 2019-02-01 13:27:15 -0800 | [diff] [blame] | 281 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 282 | # Don't trigger --config=<host platform> when cross-compiling. |
Jared Duke | 1f53007 | 2020-05-15 11:21:31 -0700 | [diff] [blame] | 283 | build:android --noenable_platform_specific_config |
| 284 | build:ios --noenable_platform_specific_config |
Jason Zaman | b41761c | 2018-10-14 11:28:53 +0800 | [diff] [blame] | 285 | |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 286 | # Suppress C++ compiler warnings, otherwise build logs become 10s of MBs. |
Jared Duke | 1f53007 | 2020-05-15 11:21:31 -0700 | [diff] [blame] | 287 | build:android --copt=-w |
| 288 | build:ios --copt=-w |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 289 | build:linux --copt=-w |
Amit Patankar | e2b2c29 | 2020-09-08 08:48:47 -0700 | [diff] [blame] | 290 | build:linux --host_copt=-w |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 291 | build:macos --copt=-w |
ag.ramesh | d0c5103 | 2020-10-17 16:33:33 -0700 | [diff] [blame] | 292 | build:windows --copt=/W0 |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 293 | |
Artem Belevich | 42f8dd1 | 2019-12-20 14:37:39 -0800 | [diff] [blame] | 294 | # Tensorflow uses M_* math constants that only get defined by MSVC headers if |
| 295 | # _USE_MATH_DEFINES is defined. |
| 296 | build:windows --copt=/D_USE_MATH_DEFINES |
Mihai Maruseac | 49e0779 | 2020-03-06 10:30:22 -0800 | [diff] [blame] | 297 | build:windows --host_copt=/D_USE_MATH_DEFINES |
Artem Belevich | 42f8dd1 | 2019-12-20 14:37:39 -0800 | [diff] [blame] | 298 | |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 299 | # Default paths for TF_SYSTEM_LIBS |
| 300 | build:linux --define=PREFIX=/usr |
| 301 | build:linux --define=LIBDIR=$(PREFIX)/lib |
| 302 | build:linux --define=INCLUDEDIR=$(PREFIX)/include |
Alexander Grund | 92214e9 | 2020-10-19 15:35:43 +0200 | [diff] [blame] | 303 | build:linux --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 304 | build:macos --define=PREFIX=/usr |
| 305 | build:macos --define=LIBDIR=$(PREFIX)/lib |
| 306 | build:macos --define=INCLUDEDIR=$(PREFIX)/include |
Alexander Grund | 92214e9 | 2020-10-19 15:35:43 +0200 | [diff] [blame] | 307 | build:macos --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 308 | # TF_SYSTEM_LIBS do not work on windows. |
| 309 | |
| 310 | # By default, build TF in C++ 14 mode. |
Jared Duke | 1f53007 | 2020-05-15 11:21:31 -0700 | [diff] [blame] | 311 | build:android --cxxopt=-std=c++14 |
| 312 | build:android --host_cxxopt=-std=c++14 |
| 313 | build:ios --cxxopt=-std=c++14 |
| 314 | build:ios --host_cxxopt=-std=c++14 |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 315 | build:linux --cxxopt=-std=c++14 |
| 316 | build:linux --host_cxxopt=-std=c++14 |
| 317 | build:macos --cxxopt=-std=c++14 |
| 318 | build:macos --host_cxxopt=-std=c++14 |
| 319 | build:windows --cxxopt=/std:c++14 |
| 320 | build:windows --host_cxxopt=/std:c++14 |
| 321 | |
| 322 | # On windows, we still link everything into a single DLL. |
| 323 | build:windows --config=monolithic |
| 324 | |
Gunhan Gulsoy | 904c276 | 2019-12-16 10:36:27 -0800 | [diff] [blame] | 325 | # On linux, we dynamically link small amount of kernels |
Gunhan Gulsoy | 57c057b | 2019-12-12 02:17:20 -0800 | [diff] [blame] | 326 | build:linux --config=dynamic_kernels |
Gunhan Gulsoy | 57c057b | 2019-12-12 02:17:20 -0800 | [diff] [blame] | 327 | |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 328 | # Make sure to include as little of windows.h as possible |
| 329 | build:windows --copt=-DWIN32_LEAN_AND_MEAN |
| 330 | build:windows --host_copt=-DWIN32_LEAN_AND_MEAN |
| 331 | build:windows --copt=-DNOGDI |
| 332 | build:windows --host_copt=-DNOGDI |
| 333 | |
Randy Dodgen | 5aa11f9 | 2020-09-10 13:23:40 -0700 | [diff] [blame] | 334 | # MSVC (Windows): Standards-conformant preprocessor mode |
| 335 | # See https://docs.microsoft.com/en-us/cpp/preprocessor/preprocessor-experimental-overview |
| 336 | build:windows --copt=/experimental:preprocessor |
| 337 | build:windows --host_copt=/experimental:preprocessor |
| 338 | |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 339 | # Misc build options we need for windows. |
Mihai Maruseac | 651cb1d | 2020-10-05 10:12:25 -0700 | [diff] [blame] | 340 | build:windows --linkopt=/DEBUG |
| 341 | build:windows --host_linkopt=/DEBUG |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 342 | build:windows --linkopt=/OPT:REF |
| 343 | build:windows --host_linkopt=/OPT:REF |
| 344 | build:windows --linkopt=/OPT:ICF |
| 345 | build:windows --host_linkopt=/OPT:ICF |
Gunhan Gulsoy | 1868de8 | 2019-12-02 13:31:04 -0800 | [diff] [blame] | 346 | |
| 347 | # Verbose failure logs when something goes wrong |
| 348 | build:windows --verbose_failures |
| 349 | |
| 350 | # On windows, we never cross compile |
| 351 | build:windows --distinct_host_configuration=false |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 352 | # On linux, don't cross compile by default |
| 353 | build:linux --distinct_host_configuration=false |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 354 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 355 | # Do not risk cache corruption. See: |
| 356 | # https://github.com/bazelbuild/bazel/issues/3360 |
| 357 | build:linux --experimental_guard_against_concurrent_changes |
| 358 | |
| 359 | # Configure short or long logs |
Gunhan Gulsoy | 08dfb5c | 2019-06-03 10:37:43 -0700 | [diff] [blame] | 360 | build:short_logs --output_filter=DONT_MATCH_ANYTHING |
Gunhan Gulsoy | f9dd454 | 2020-07-22 16:10:48 -0700 | [diff] [blame] | 361 | build:verbose_logs --output_filter= |
Gunhan Gulsoy | 08dfb5c | 2019-06-03 10:37:43 -0700 | [diff] [blame] | 362 | |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 363 | # Instruction set optimizations |
| 364 | # TODO(gunan): Create a feature in toolchains for avx/avx2 to |
| 365 | # avoid having to define linux/win separately. |
| 366 | build:avx_linux --copt=-mavx |
Amit Patankar | e2b2c29 | 2020-09-08 08:48:47 -0700 | [diff] [blame] | 367 | build:avx_linux --host_copt=-mavx |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 368 | build:avx2_linux --copt=-mavx2 |
| 369 | build:native_arch_linux --copt=-march=native |
| 370 | build:avx_win --copt=/arch=AVX |
| 371 | build:avx2_win --copt=/arch=AVX2 |
Gunhan Gulsoy | 71f9f0c | 2019-06-12 21:16:40 -0700 | [diff] [blame] | 372 | |
Anna R | 50515e8 | 2019-09-26 09:50:26 -0700 | [diff] [blame] | 373 | # Options to build TensorFlow 1.x or 2.x. |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 374 | build:v1 --define=tf_api_version=1 --action_env=TF2_BEHAVIOR=0 |
| 375 | build:v2 --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 |
Anna R | 50515e8 | 2019-09-26 09:50:26 -0700 | [diff] [blame] | 376 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 377 | # Disable XLA on mobile. |
| 378 | build:xla --define=with_xla_support=true # TODO: remove, it's on by default. |
| 379 | build:android --define=with_xla_support=false |
| 380 | build:ios --define=with_xla_support=false |
Gunhan Gulsoy | f4edbd9 | 2020-02-27 16:07:32 -0800 | [diff] [blame] | 381 | |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 382 | # BEGIN TF REMOTE BUILD EXECUTION OPTIONS |
| 383 | # Options when using remote execution |
| 384 | # WARNING: THESE OPTIONS WONT WORK IF YOU DO NOT HAVE PROPER AUTHENTICATION AND PERMISSIONS |
Jakob Buchgraber | 09fe958 | 2020-02-19 14:59:49 -0800 | [diff] [blame] | 385 | |
| 386 | # Flag to enable remote config |
| 387 | common --experimental_repo_remote_exec |
| 388 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 389 | build:rbe --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 |
Jakob Buchgraber | 149f584 | 2020-02-18 11:23:47 -0800 | [diff] [blame] | 390 | build:rbe --google_default_credentials |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 391 | build:rbe --bes_backend=buildeventservice.googleapis.com |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 392 | build:rbe --bes_results_url="https://source.cloud.google.com/results/invocations" |
| 393 | build:rbe --bes_timeout=600s |
| 394 | build:rbe --define=EXECUTOR=remote |
Brian Atkinson | 729d407 | 2020-02-14 11:05:41 -0800 | [diff] [blame] | 395 | build:rbe --distinct_host_configuration=false |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 396 | build:rbe --flaky_test_attempts=3 |
| 397 | build:rbe --jobs=200 |
| 398 | build:rbe --remote_executor=grpcs://remotebuildexecution.googleapis.com |
| 399 | build:rbe --remote_timeout=3600 |
Gunhan Gulsoy | ff42635 | 2019-11-18 15:28:56 -0800 | [diff] [blame] | 400 | build:rbe --spawn_strategy=remote,worker,standalone,local |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 401 | test:rbe --test_env=USER=anon |
Brian Atkinson | 729d407 | 2020-02-14 11:05:41 -0800 | [diff] [blame] | 402 | # Attempt to minimize the amount of data transfer between bazel and the remote |
| 403 | # workers: |
Jakob Buchgraber | 149f584 | 2020-02-18 11:23:47 -0800 | [diff] [blame] | 404 | build:rbe --remote_download_toplevel |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 405 | |
| 406 | build:rbe_linux --config=rbe |
| 407 | build:rbe_linux --action_env=PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin" |
| 408 | build:rbe_linux --host_javabase=@bazel_toolchains//configs/ubuntu16_04_clang/1.1:jdk8 |
| 409 | build:rbe_linux --javabase=@bazel_toolchains//configs/ubuntu16_04_clang/1.1:jdk8 |
| 410 | build:rbe_linux --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 |
| 411 | build:rbe_linux --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 |
| 412 | |
| 413 | # Non-rbe settings we should include because we do not run configure |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 414 | build:rbe_linux --config=avx_linux |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 415 | # TODO(gunan): Check why we need this specified in rbe, but not in other builds. |
| 416 | build:rbe_linux --linkopt=-lrt |
Amit Patankar | e2b2c29 | 2020-09-08 08:48:47 -0700 | [diff] [blame] | 417 | build:rbe_linux --host_linkopt=-lrt |
Pete Warden | adf6e22 | 2020-01-23 15:16:46 -0800 | [diff] [blame] | 418 | build:rbe_linux --linkopt=-lm |
Amit Patankar | e2b2c29 | 2020-09-08 08:48:47 -0700 | [diff] [blame] | 419 | build:rbe_linux --host_linkopt=-lm |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 420 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 421 | # Use the GPU toolchain until the CPU one is ready. |
| 422 | # https://github.com/bazelbuild/bazel/issues/13623 |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 423 | build:rbe_cpu_linux --config=rbe_linux |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 424 | build:rbe_cpu_linux --host_crosstool_top="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain" |
| 425 | build:rbe_cpu_linux --crosstool_top="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain" |
| 426 | build:rbe_cpu_linux --extra_toolchains="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain-linux-x86_64" |
| 427 | build:rbe_cpu_linux --extra_execution_platforms="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_platform//:platform" |
| 428 | build:rbe_cpu_linux --host_platform="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_platform//:platform" |
| 429 | build:rbe_cpu_linux --platforms="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_platform//:platform" |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 430 | |
A. Unique TensorFlower | 765dddd | 2020-03-20 00:20:56 -0700 | [diff] [blame] | 431 | build:rbe_linux_cuda_base --config=rbe_linux |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 432 | build:rbe_linux_cuda_base --config=cuda |
| 433 | build:rbe_linux_cuda_base --config=tensorrt |
| 434 | build:rbe_linux_cuda_base --action_env=TF_CUDA_VERSION=11 |
| 435 | build:rbe_linux_cuda_base --action_env=TF_CUDNN_VERSION=8 |
A. Unique TensorFlower | 765dddd | 2020-03-20 00:20:56 -0700 | [diff] [blame] | 436 | build:rbe_linux_cuda_base --repo_env=REMOTE_GPU_TESTING=1 |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 437 | # TensorRT 7 for CUDA 11.1 is compatible with CUDA 11.2, but requires |
| 438 | # libnvrtc.so.11.1. See https://github.com/NVIDIA/TensorRT/issues/1064. |
| 439 | # TODO(b/187962120): Remove when upgrading to TensorRT 8. |
| 440 | test:rbe_linux_cuda_base --test_env=LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda-11.1/lib64" |
A. Unique TensorFlower | 765dddd | 2020-03-20 00:20:56 -0700 | [diff] [blame] | 441 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 442 | build:rbe_linux_cuda11.2_nvcc_base --config=rbe_linux_cuda_base |
| 443 | build:rbe_linux_cuda11.2_nvcc_base --host_crosstool_top="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain" |
| 444 | build:rbe_linux_cuda11.2_nvcc_base --crosstool_top="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain" |
| 445 | build:rbe_linux_cuda11.2_nvcc_base --extra_toolchains="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain-linux-x86_64" |
| 446 | build:rbe_linux_cuda11.2_nvcc_base --extra_execution_platforms="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_platform//:platform" |
| 447 | build:rbe_linux_cuda11.2_nvcc_base --host_platform="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_platform//:platform" |
| 448 | build:rbe_linux_cuda11.2_nvcc_base --platforms="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_platform//:platform" |
| 449 | build:rbe_linux_cuda11.2_nvcc_base --repo_env=TF_CUDA_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda" |
| 450 | build:rbe_linux_cuda11.2_nvcc_base --repo_env=TF_TENSORRT_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_tensorrt" |
| 451 | build:rbe_linux_cuda11.2_nvcc_base --repo_env=TF_NCCL_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_nccl" |
| 452 | build:rbe_linux_cuda11.2_nvcc_py3.6 --config=rbe_linux_cuda11.2_nvcc_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.6" |
| 453 | build:rbe_linux_cuda11.2_nvcc_py3.7 --config=rbe_linux_cuda11.2_nvcc_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.7" |
| 454 | build:rbe_linux_cuda11.2_nvcc_py3.8 --config=rbe_linux_cuda11.2_nvcc_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.8" |
| 455 | build:rbe_linux_cuda11.2_nvcc_py3.9 --config=rbe_linux_cuda11.2_nvcc_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.9" |
A. Unique TensorFlower | 765dddd | 2020-03-20 00:20:56 -0700 | [diff] [blame] | 456 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 457 | # Map default to CUDA 11.2. |
| 458 | build:rbe_linux_cuda_nvcc_py36 --config=rbe_linux_cuda11.2_nvcc_py3.6 |
| 459 | build:rbe_linux_cuda_nvcc_py37 --config=rbe_linux_cuda11.2_nvcc_py3.7 |
| 460 | build:rbe_linux_cuda_nvcc_py38 --config=rbe_linux_cuda11.2_nvcc_py3.8 |
| 461 | build:rbe_linux_cuda_nvcc_py39 --config=rbe_linux_cuda11.2_nvcc_py3.9 |
Christian Sigg | 18569dd | 2020-06-22 11:08:36 -0700 | [diff] [blame] | 462 | |
| 463 | # Deprecated configs that people might still use. |
| 464 | build:rbe_linux_cuda_nvcc --config=rbe_linux_cuda_nvcc_py36 |
| 465 | build:rbe_gpu_linux --config=rbe_linux_cuda_nvcc |
A. Unique TensorFlower | bb68770 | 2020-04-29 07:00:30 -0700 | [diff] [blame] | 466 | |
A. Unique TensorFlower | 4f4503b | 2020-04-29 10:02:37 -0700 | [diff] [blame] | 467 | build:rbe_linux_cuda_clang_base --config=rbe_linux_cuda_base |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 468 | build:rbe_linux_cuda_clang_base --repo_env TF_CUDA_CLANG=1 |
| 469 | build:rbe_linux_cuda_clang_base --@local_config_cuda//:cuda_compiler=clang |
| 470 | build:rbe_linux_cuda_clang_base --crosstool_top="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain" |
| 471 | build:rbe_linux_cuda_clang_base --extra_toolchains="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain-linux-x86_64" |
| 472 | build:rbe_linux_cuda_clang_base --extra_execution_platforms="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_platform//:platform" |
| 473 | build:rbe_linux_cuda_clang_base --host_platform="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_platform//:platform" |
| 474 | build:rbe_linux_cuda_clang_base --platforms="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_platform//:platform" |
| 475 | build:rbe_linux_cuda_clang_base --repo_env=TF_CUDA_CONFIG_REPO="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda" |
| 476 | build:rbe_linux_cuda_clang_base --repo_env=TF_TENSORRT_CONFIG_REPO="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_tensorrt" |
| 477 | build:rbe_linux_cuda_clang_base --repo_env=TF_NCCL_CONFIG_REPO="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_nccl" |
| 478 | build:rbe_linux_cuda_clang_py27 --config=rbe_linux_cuda_clang_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python2.7" |
| 479 | build:rbe_linux_cuda_clang_py35 --config=rbe_linux_cuda_clang_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.5" |
| 480 | build:rbe_linux_cuda_clang_py36 --config=rbe_linux_cuda_clang_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.6" |
| 481 | build:rbe_linux_cuda_clang_py37 --config=rbe_linux_cuda_clang_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.7" |
| 482 | build:rbe_linux_cuda_clang_py38 --config=rbe_linux_cuda_clang_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-clang_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.8" |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 483 | |
Christian Sigg | 22def20 | 2020-06-29 04:23:28 -0700 | [diff] [blame] | 484 | # ROCm |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 485 | build:rbe_linux_rocm_base --config=rocm |
Christian Sigg | 22def20 | 2020-06-29 04:23:28 -0700 | [diff] [blame] | 486 | build:rbe_linux_rocm_base --config=rbe_linux |
Christian Sigg | 22def20 | 2020-06-29 04:23:28 -0700 | [diff] [blame] | 487 | build:rbe_linux_rocm_base --crosstool_top="@ubuntu18.04-gcc7_manylinux2010-rocm_config_rocm//crosstool:toolchain" |
| 488 | build:rbe_linux_rocm_base --extra_toolchains="@ubuntu18.04-gcc7_manylinux2010-rocm_config_rocm//crosstool:toolchain-linux-x86_64" |
| 489 | build:rbe_linux_rocm_base --extra_execution_platforms="@ubuntu18.04-gcc7_manylinux2010-rocm_config_platform//:platform" |
| 490 | build:rbe_linux_rocm_base --host_platform="@ubuntu18.04-gcc7_manylinux2010-rocm_config_platform//:platform" |
| 491 | build:rbe_linux_rocm_base --platforms="@ubuntu18.04-gcc7_manylinux2010-rocm_config_platform//:platform" |
| 492 | build:rbe_linux_rocm_base --action_env=TF_ROCM_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-rocm_config_rocm" |
Christian Sigg | 22def20 | 2020-06-29 04:23:28 -0700 | [diff] [blame] | 493 | build:rbe_linux_rocm_py2.7 --config=rbe_linux_rocm_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-rocm_config_python2.7" |
| 494 | build:rbe_linux_rocm_py3.5 --config=rbe_linux_rocm_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-rocm_config_python3.5" |
| 495 | build:rbe_linux_rocm_py3.6 --config=rbe_linux_rocm_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-rocm_config_python3.6" |
| 496 | build:rbe_linux_rocm_py3.7 --config=rbe_linux_rocm_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-rocm_config_python3.7" |
| 497 | build:rbe_linux_rocm_py3.8 --config=rbe_linux_rocm_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-rocm_config_python3.8" |
| 498 | |
| 499 | # Linux CPU |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 500 | |
| 501 | build:rbe_linux_py3 --config=rbe_linux |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 502 | build:rbe_linux_py3 --python_path="/usr/local/bin/python3.9" |
| 503 | build:rbe_linux_py3 --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.9" |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 504 | |
| 505 | build:rbe_win --config=rbe |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 506 | build:rbe_win --crosstool_top="@tf_toolchains//toolchains/win/tf_win_06242021:toolchain" |
| 507 | build:rbe_win --extra_toolchains="@tf_toolchains//toolchains/win/tf_win_06242021:cc-toolchain-x64_windows" |
| 508 | build:rbe_win --host_javabase="@tf_toolchains//toolchains/win:windows_jdk8" |
| 509 | build:rbe_win --javabase="@tf_toolchains//toolchains/win:windows_jdk8" |
| 510 | build:rbe_win --extra_execution_platforms="@tf_toolchains//toolchains/win:rbe_windows_ltsc2019" |
| 511 | build:rbe_win --host_platform="@tf_toolchains//toolchains/win:rbe_windows_ltsc2019" |
| 512 | build:rbe_win --platforms="@tf_toolchains//toolchains/win:rbe_windows_ltsc2019" |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 513 | build:rbe_win --shell_executable=C:\\tools\\msys64\\usr\\bin\\bash.exe |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 514 | build:rbe_win --experimental_strict_action_env=true |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 515 | |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 516 | # TODO(gunan): Remove once we use MSVC 2019 with latest patches. |
| 517 | build:rbe_win --define=override_eigen_strong_inline=true |
Gunhan Gulsoy | 5c25035 | 2020-07-09 11:03:17 -0700 | [diff] [blame] | 518 | build:rbe_win --jobs=100 |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 519 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 520 | # Don't build the python zip archive in the RBE build. |
| 521 | build:rbe_win --remote_download_minimal |
| 522 | build:rbe_win --enable_runfiles |
| 523 | build:rbe_win --nobuild_python_zip |
| 524 | |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 525 | build:rbe_win_py37 --config=rbe |
Jakob Buchgraber | e9c7aa7 | 2020-02-24 12:30:35 -0800 | [diff] [blame] | 526 | build:rbe_win_py37 --repo_env=TF_PYTHON_CONFIG_REPO="@windows_py37_config_python" |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 527 | build:rbe_win_py37 --python_path=C:\\Python37\\python.exe |
| 528 | |
Gunhan Gulsoy | 0b5f6be | 2020-01-30 10:46:31 -0800 | [diff] [blame] | 529 | build:rbe_win_py38 --config=rbe |
| 530 | build:rbe_win_py38 --repo_env=PYTHON_BIN_PATH=C:\\Python38\\python.exe |
| 531 | build:rbe_win_py38 --repo_env=PYTHON_LIB_PATH=C:\\Python38\\lib\\site-packages |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 532 | build:rbe_win_py38 --repo_env=TF_PYTHON_CONFIG_REPO=@tf_toolchains//toolchains/win_1803/py38 |
Gunhan Gulsoy | 0b5f6be | 2020-01-30 10:46:31 -0800 | [diff] [blame] | 533 | build:rbe_win_py38 --python_path=C:\\Python38\\python.exe |
| 534 | |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 535 | # These you may need to change for your own GCP project. |
| 536 | build:tensorflow_testing_rbe --project_id=tensorflow-testing |
Gunhan Gulsoy | 06f9ec3 | 2019-11-18 17:21:21 -0800 | [diff] [blame] | 537 | common:tensorflow_testing_rbe_linux --remote_instance_name=projects/tensorflow-testing/instances/default_instance |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 538 | build:tensorflow_testing_rbe_linux --config=tensorflow_testing_rbe |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 539 | |
| 540 | common:tensorflow_testing_rbe_win --remote_instance_name=projects/tensorflow-testing/instances/windows |
| 541 | build:tensorflow_testing_rbe_win --config=tensorflow_testing_rbe |
Terry Heo | 4961f18 | 2020-04-13 18:18:44 -0700 | [diff] [blame] | 542 | |
| 543 | # TFLite build configs for generic embedded Linux |
| 544 | build:elinux --crosstool_top=@local_config_embedded_arm//:toolchain |
| 545 | build:elinux --host_crosstool_top=@bazel_tools//tools/cpp:toolchain |
| 546 | build:elinux_aarch64 --config=elinux |
| 547 | build:elinux_aarch64 --cpu=aarch64 |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 548 | build:elinux_aarch64 --distinct_host_configuration=true |
Terry Heo | 4961f18 | 2020-04-13 18:18:44 -0700 | [diff] [blame] | 549 | build:elinux_armhf --config=elinux |
| 550 | build:elinux_armhf --cpu=armhf |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 551 | build:elinux_armhf --distinct_host_configuration=true |
Gunhan Gulsoy | e70d095 | 2019-11-15 15:29:33 -0800 | [diff] [blame] | 552 | # END TF REMOTE BUILD EXECUTION OPTIONS |
| 553 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 554 | # Config-specific options should come above this line. |
Jason Zaman | b41761c | 2018-10-14 11:28:53 +0800 | [diff] [blame] | 555 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 556 | # Load rc file written by ./configure. |
Jason Zaman | b41761c | 2018-10-14 11:28:53 +0800 | [diff] [blame] | 557 | try-import %workspace%/.tf_configure.bazelrc |
| 558 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 559 | # Load rc file with user-specific options. |
Jason Zaman | b41761c | 2018-10-14 11:28:53 +0800 | [diff] [blame] | 560 | try-import %workspace%/.bazelrc.user |
Amit Patankar | 4e7eb7f | 2020-07-13 10:35:44 -0700 | [diff] [blame] | 561 | |
| 562 | # Here are bazelrc configs for release builds |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 563 | build:release_base --config=v2 |
| 564 | build:release_base --distinct_host_configuration=false |
| 565 | test:release_base --flaky_test_attempts=3 |
| 566 | test:release_base --test_size_filters=small,medium |
Amit Patankar | 4e7eb7f | 2020-07-13 10:35:44 -0700 | [diff] [blame] | 567 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 568 | build:release_cpu_linux --config=release_base |
Amit Patankar | ed60f21 | 2020-07-15 13:09:29 -0700 | [diff] [blame] | 569 | build:release_cpu_linux --config=avx_linux |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 570 | build:release_cpu_linux --crosstool_top="@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain" |
| 571 | test:release_cpu_linux --test_env=LD_LIBRARY_PATH |
Amit Patankar | 4e7eb7f | 2020-07-13 10:35:44 -0700 | [diff] [blame] | 572 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 573 | build:release_cpu_macos --config=release_base |
Amit Patankar | 258a4ea | 2020-07-16 14:27:35 -0700 | [diff] [blame] | 574 | build:release_cpu_macos --config=avx_linux |
| 575 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 576 | build:release_gpu_base --config=cuda |
| 577 | build:release_gpu_base --action_env=TF_CUDA_VERSION="11" |
| 578 | build:release_gpu_base --action_env=TF_CUDNN_VERSION="8" |
| 579 | build:release_gpu_base --repo_env=TF_CUDA_COMPUTE_CAPABILITIES="sm_35,sm_50,sm_60,sm_70,sm_75,compute_80" |
Amit Patankar | ed60f21 | 2020-07-15 13:09:29 -0700 | [diff] [blame] | 580 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 581 | build:release_gpu_linux --config=release_cpu_linux |
| 582 | build:release_gpu_linux --config=release_gpu_base |
| 583 | build:release_gpu_linux --config=tensorrt |
| 584 | build:release_gpu_linux --action_env=CUDA_TOOLKIT_PATH="/usr/local/cuda-11.2" |
| 585 | build:release_gpu_linux --action_env=LD_LIBRARY_PATH="/usr/local/cuda:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/tensorrt/lib" |
| 586 | build:release_gpu_linux --action_env=GCC_HOST_COMPILER_PATH="/dt7/usr/bin/gcc" |
| 587 | build:release_gpu_linux --crosstool_top=@ubuntu18.04-gcc7_manylinux2010-cuda11.2-cudnn8.1-tensorrt7.2_config_cuda//crosstool:toolchain |
Amit Patankar | 4e7eb7f | 2020-07-13 10:35:44 -0700 | [diff] [blame] | 588 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 589 | build:release_cpu_windows --config=release_base |
| 590 | build:release_cpu_windows --config=avx_win |
| 591 | build:release_cpu_windows --define=no_tensorflow_py_deps=true |
Austin Anderson | 9983bb3 | 2020-11-12 16:39:52 -0800 | [diff] [blame] | 592 | # First available in VS 16.4. Speeds Windows compile times by a lot. See |
| 593 | # https://groups.google.com/a/tensorflow.org/d/topic/build/SsW98Eo7l3o/discussion |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 594 | build:release_cpu_windows --copt=/d2ReducedOptimizeHugeFunctions --host_copt=/d2ReducedOptimizeHugeFunctions |
Austin Anderson | 9983bb3 | 2020-11-12 16:39:52 -0800 | [diff] [blame] | 595 | |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 596 | build:release_gpu_windows --config=release_cpu_windows |
| 597 | build:release_gpu_windows --config=release_gpu_base |
Advait Jain | 38f8ad1 | 2021-01-20 14:46:12 -0800 | [diff] [blame] | 598 | |
| 599 | # Address sanitizer |
| 600 | # CC=clang bazel build --config asan |
| 601 | build:asan --strip=never |
| 602 | build:asan --copt -fsanitize=address |
| 603 | build:asan --copt -DADDRESS_SANITIZER |
| 604 | build:asan --copt -g |
| 605 | build:asan --copt -O3 |
| 606 | build:asan --copt -fno-omit-frame-pointer |
| 607 | build:asan --linkopt -fsanitize=address |
| 608 | |
| 609 | # Memory sanitizer |
Penporn Koanantakool | 57cdc3a | 2021-02-09 13:30:56 -0800 | [diff] [blame] | 610 | # CC=clang bazel build --config msan |
Advait Jain | 38f8ad1 | 2021-01-20 14:46:12 -0800 | [diff] [blame] | 611 | build:msan --strip=never |
| 612 | build:msan --copt -fsanitize=memory |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 613 | build:msan --copt -DMEMORY_SANITIZER |
Advait Jain | 38f8ad1 | 2021-01-20 14:46:12 -0800 | [diff] [blame] | 614 | build:msan --copt -g |
| 615 | build:msan --copt -O3 |
| 616 | build:msan --copt -fno-omit-frame-pointer |
| 617 | build:msan --linkopt -fsanitize=memory |
| 618 | |
| 619 | # Undefined Behavior Sanitizer |
Penporn Koanantakool | 57cdc3a | 2021-02-09 13:30:56 -0800 | [diff] [blame] | 620 | # CC=clang bazel build --config ubsan |
Advait Jain | 38f8ad1 | 2021-01-20 14:46:12 -0800 | [diff] [blame] | 621 | build:ubsan --strip=never |
| 622 | build:ubsan --copt -fsanitize=undefined |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 623 | build:ubsan --copt -DUNDEFINED_BEHAVIOR_SANITIZER |
Advait Jain | 38f8ad1 | 2021-01-20 14:46:12 -0800 | [diff] [blame] | 624 | build:ubsan --copt -g |
| 625 | build:ubsan --copt -O3 |
| 626 | build:ubsan --copt -fno-omit-frame-pointer |
| 627 | build:ubsan --linkopt -fsanitize=undefined |
| 628 | build:ubsan --linkopt -lubsan |
Ian Hua | 6b51112 | 2021-08-11 21:38:50 +0100 | [diff] [blame] | 629 | |
| 630 | # Exclude TFRT integration for anything but Linux. |
| 631 | build:android --config=no_tfrt |
| 632 | build:macos --config=no_tfrt |
| 633 | build:windows --config=no_tfrt |
| 634 | build:rocm --config=no_tfrt |
| 635 | build:no_tfrt --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,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/tfrt/common,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/fallback,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils |
| 636 | |
| 637 | # Experimental configuration for testing XLA GPU lowering to TFRT BEF thunks. |
| 638 | # bazel test --config=experimental_enable_bef_thunk \ |
| 639 | # //tensorflow/compiler/xla/service/gpu/tests:mlir_gemm_test |
| 640 | build:experimental_enable_bef_thunk --config=cuda |
| 641 | build:experimental_enable_bef_thunk --//tensorflow/compiler/xla/service/gpu:enable_bef_thunk |
| 642 | build:experimental_enable_bef_thunk --@tf_runtime//:enable_gpu |
| 643 | build:experimental_enable_bef_thunk --@rules_cuda//cuda:enable_cuda |
| 644 | build:experimental_enable_bef_thunk --nocheck_visibility |
| 645 | build:experimental_enable_bef_thunk --incompatible_strict_action_env |
| 646 | build:experimental_enable_bef_thunk --config=monolithic |