-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.bazelrc
More file actions
53 lines (43 loc) · 1.8 KB
/
.bazelrc
File metadata and controls
53 lines (43 loc) · 1.8 KB
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
build --define=use_fast_cpp_protos=true
build --define=allow_oversize_protos=true
# bzlmod is default for bazel v7+ so, disabling it.
build --noenable_bzlmod
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
try-import %workspace%/.tf_plugin_configure.bazelrc
build --define=build_with_zendnn=true
build --define=build_with_openmp=true
build --copt=-fopenmp
build --cxxopt=-std=c++17
build --host_cxxopt=-std=c++17
build -c opt
# Ignore below folders while -Werror check since
# these files are coming from thrid-party
build --per_file_copt=external/.*@-Wno-error
build --copt=-Wno-error=stringop-overflow
build --copt=-Wno-comment
build --copt=-Wno-int-in-bool-context
# ToDo: Remove this once we have a fix for the unused function warning
build --copt=-Wno-unused-function
build --copt=-Wno-unused-variable
# Pass environment variables to build actions
build --action_env=ZENDNNL_MANYLINUX_BUILD
#Capture entire compiler/linker logs, regardless of size.
#Print everything in your console (useful for debugging).
build --experimental_ui_max_stdouterr_bytes=-1
#controls number of parallel jobs for ZenDNN CMake library only
#ZenDNN builds BLIS and this setting doesn't effect BLIS
build --define=CPU_COUNT=24
# Enable disk cache for faster subsequent builds
# Uncomment and set an absolute path to enable disk caching
# Example: build --disk_cache=/tmp/bazel-disk-cache
# Or set via command line: bazel build --disk_cache=/path/to/cache ...
# Enable remote cache if available (optional, uncomment if you have a remote cache server)
# build --remote_cache=http://your-cache-server:port
# Ensure deterministic builds for better caching
build --stamp=false