1 # Android configs. Bazel needs to have --cpu and --fat_apk_cpu both set to the 2 # target CPU to build transient dependencies correctly. See 3 # https://docs.bazel.build/versions/master/user-manual.html#flag--fat_apk_cpu 4 build:android --crosstool_top=//external:android/crosstool 5 build:android --host_crosstool_top=@bazel_tools//tools/cpp:toolchain 6 build:android_arm --config=android 7 build:android_arm --cpu=armeabi-v7a 8 build:android_arm --fat_apk_cpu=armeabi-v7a 9 build:android_arm64 --config=android 10 build:android_arm64 --cpu=arm64-v8a 11 build:android_arm64 --fat_apk_cpu=arm64-v8a 12 13 # Config to use a mostly-static build and disable modular op registration 14 # support (this will revert to loading TensorFlow with RTLD_GLOBAL in Python). 15 # By default, TensorFlow will build with a dependence on 16 # //tensorflow:libtensorflow_framework.so. 17 build:monolithic --define framework_shared_object=false 18 19 # For projects which use TensorFlow as part of a Bazel build process, putting 20 # nothing in a bazelrc will default to a monolithic build. The following line 21 # opts in to modular op registration support by default. 22 build --define framework_shared_object=true 23 24 # Please note that MKL on MacOS or windows is still not supported. 25 # If you would like to use a local MKL instead of downloading, please set the 26 # environment variable "TF_MKL_ROOT" every time before build. 27 build:mkl --define=using_mkl=true 28 build:mkl -c opt 29 30 build:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain 31 build:cuda --define=using_cuda=true --define=using_cuda_nvcc=true 32 33 build:cuda_clang --crosstool_top=@local_config_cuda//crosstool:toolchain 34 build:cuda_clang --define=using_cuda=true --define=using_cuda_clang=true 35 36 build:win-cuda --define=using_cuda=true --define=using_cuda_nvcc=true 37 38 build:mkl --define=using_mkl=true 39 40 build:sycl --crosstool_top=@local_config_sycl//crosstool:toolchain 41 build:sycl --define=using_sycl=true --define=using_trisycl=false 42 43 build:sycl_nodouble --crosstool_top=@local_config_sycl//crosstool:toolchain 44 build:sycl_nodouble --define=using_sycl=true --cxxopt -DTENSORFLOW_SYCL_NO_DOUBLE 45 46 build:sycl_asan --crosstool_top=@local_config_sycl//crosstool:toolchain 47 build:sycl_asan --define=using_sycl=true --define=using_trisycl=false --copt -fno-omit-frame-pointer --copt -fsanitize-coverage=3 --copt -DGPR_NO_DIRECT_SYSCALLS --linkopt -fPIC --linkopt -fsanitize=address 48 49 build:sycl_trisycl --crosstool_top=@local_config_sycl//crosstool:toolchain 50 build:sycl_trisycl --define=using_sycl=true --define=using_trisycl=true 51 52 build --define=use_fast_cpp_protos=true 53 build --define=allow_oversize_protos=true 54 build --define=grpc_no_ares=true 55 56 build --spawn_strategy=standalone 57 build --genrule_strategy=standalone 58 build -c opt 59