-
Notifications
You must be signed in to change notification settings - Fork 11
/
.bazelrc
42 lines (31 loc) · 1.13 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Required by OpenXLA
# https://github.com/openxla/xla/issues/1323
build --nocheck_visibility
# Make Bazel print out all options from rc files.
build --announce_rc
build --config=gpu
# This config option is used for GPU backend.
build:gpu --crosstool_top=@local_config_sycl//crosstool:toolchain
build:gpu --define=using_sycl=true
build:gpu --repo_env TF_NEED_SYCL=1
build:gpu --define=tensorflow_mkldnn_contraction_kernel=0
build:gpu --cxxopt=-std=c++17
build:gpu --host_cxxopt=-std=c++17
build --define=use_fast_cpp_protos=true
build --define=allow_oversize_protos=true
build --spawn_strategy=standalone
build --strategy=Genrule=standalone
build -c opt
# Default paths for TF_SYSTEM_LIBS
build --define=PREFIX=/usr
build --define=LIBDIR=$(PREFIX)/lib
build --define=INCLUDEDIR=$(PREFIX)/include
# host build is useless
build --distinct_host_configuration=false
# Flag to enable remote config
common --experimental_repo_remote_exec
# Default options should come above this line
# Options from ./configure
try-import %workspace%/.xla_extension_configure.bazelrc
# Put user-specific options in .bazelrc.user
try-import %workspace%/.bazelrc.user