-
Notifications
You must be signed in to change notification settings - Fork 40
/
.bazelrc
77 lines (65 loc) · 3.01 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
build --nocheck_visibility
# This config option is used for CPU backend.
build:cpu --define=build_with_onednn=true
build:cpu --define=build_with_onednn_graph=true
build:cpu --define=build_with_graph_compiler=true
build:cpu -c opt
build:cpu --copt=-DINTEL_CPU_ONLY
build:cpu --copt=-D__STDC_FORMAT_MACROS
build:cpu --copt=-mfma --copt=-O3 --copt=-mavx --copt=-mavx2
# By default, build ITEX in C++ 17 mode to align with Tensorflow
build:cpu --cxxopt=-std=c++17
build:cpu --host_cxxopt=-std=c++17
build:cpu --define=device=cpu
# TODO(itex): Enable TBB by default once it's ready.
# build:cpu --define=build_with_tbb=true
# This config option is used for GPU backend. (Deprecated)
build:gpu --crosstool_top=@itex_local_config_sycl//crosstool_sycl:toolchain
build:gpu --define=using_sycl=true --define=build_with_sycl=true --define=using_xetla=true --define=using_nextpluggable=true
build:gpu --define=build_with_onednn_graph=true
build:gpu --define=device=gpu
build:gpu --define=tensorflow_mkldnn_contraction_kernel=0
build:gpu --repo_env TF_NEED_SYCL=1
build:gpu --repo_env TF_NEED_MKL=1
# This config option is used for GPU backend.
# xpu will replace gpu as default config option for GPU only backend.
build:xpu --crosstool_top=@itex_local_config_sycl//crosstool_sycl:toolchain
build:xpu --define=using_sycl=true --define=build_with_sycl=true --define=using_xetla=true --define=using_nextpluggable=true
build:xpu --define=build_with_onednn_graph=true
build:xpu --define=device=gpu
build:xpu --define=tensorflow_mkldnn_contraction_kernel=0
build:xpu --repo_env TF_NEED_SYCL=1
build:xpu --repo_env TF_NEED_MKL=1
# This config option is used for XPU backend (CPU + GPU). (Disabled)
# build:xpu --crosstool_top=@itex_local_config_sycl//crosstool_sycl:toolchain
# build:xpu --define=using_xetla=true
# build:xpu --define=build_as_xpu=true
# build:xpu --define=build_with_onednn_graph=true
# build:xpu --define=build_with_graph_compiler=true
# build:xpu --define=tensorflow_mkldnn_contraction_kernel=0
# build:xpu --define=using_nextpluggable=false
# 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, default enabled on cpu
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
# Build github revision info to binary
build --workspace_status_command=./itex/tools/get_itex_version.sh
# Default options should come above this line
#
# Flag to enable remote config
common --experimental_repo_remote_exec
# Options from ./configure
try-import %workspace%/.itex_configure.bazelrc
# Put user-specific options in .bazelrc.user
try-import %workspace%/.bazelrc.user