forked from intel/intel-extension-for-openxla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
61 lines (46 loc) · 1.84 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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 CPU backend.
# build:cpu --define=build_with_onednn=true
# build:cpu --define=build_with_graph_compiler=true
# build:cpu --copt=-DINTEL_CPU_ONLY
# build:cpu --copt=-march=native
# build:cpu --cxxopt=-std=c++14
# build:cpu --host_cxxopt=-std=c++14
# build:cpu --define=device=cpu
# build:cpu --config=onednn_v3
# build:cpu -c opt
# 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 --define=device=gpu
build:gpu --config=onednn_v3
build:gpu --repo_env TF_NEED_SYCL=1
# This config build with oneDNN V3 API, which is enabled by default
build:onednn_v3 --copt=-DITEX_ONEDNN_3_0 --define=onednn_version=3
# This config option is used for LLGA (OneDnnGraph) debugging
#build:llga-debug --define=build_with_llga_debug=true
# This config option is used for LLGA (OneDnnGraph) graph compiler backend, currently only available for onednn graph v2
# build:graph-compiler --define=build_with_graph_compiler=true
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%/.itex_configure.bazelrc
# Put user-specific options in .bazelrc.user
try-import %workspace%/.bazelrc.user