forked from modular/modular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bazelrc
More file actions
96 lines (72 loc) · 3.42 KB
/
Copy path.bazelrc
File metadata and controls
96 lines (72 loc) · 3.42 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# https://github.com/aspect-build/rules_js/issues/1408
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
# Avoid PATH leaking into actions
common --incompatible_strict_action_env
# Enable --config=(macos|windows|linux) based on the host OS
common --enable_platform_specific_config
# Force hermetic toolchain, make sure we don't accidentally used the default one
common:linux --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
common:linux --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1
# Don't fail on unknown GPUs, add needed GPUs to common.MODULE.bazel
common --repo_env=MOJO_IGNORE_UNKNOWN_GPUS=1
common --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
# https://github.com/bazelbuild/bazel/issues/25145
info --platforms=
# Use a custom platform to detect GPU hardware
common --platforms=@mojo_host_platform
common --host_platform=@mojo_host_platform
# Disable legacy duplicate runfiles creation
common --legacy_external_runfiles=false
common --build_runfile_links=false
# Include full test log in failed tests
build --test_output=errors
build --test_summary=terse
# Silence warnings in external dependencies used in tests
build --per_file_copt=external/.*@-w --host_per_file_copt=external/.*@-w
# Use the target platform for tests to correctly resolve GPU settings
build --use_target_platform_for_tests
# Buildbuddy cache optimization recommendations
build --experimental_profile_include_primary_output
build --experimental_profile_include_target_label
build --experimental_remote_cache_compression_threshold=100
build --legacy_important_outputs=false
build --remote_cache_compression
build --slim_profile=false
build --remote_download_outputs=toplevel
build --remote_download_regex='.*\.(inc|h)$'
build --experimental_remote_cache_eviction_retries=3
build --grpc_keepalive_time=30s
build --remote_upload_local_results
build --remote_exec_header=x-buildbuddy-platform.default-timeout=15m
build --remote_instance_name=modular-public
build:cache --bes_results_url=https://modular.buildbuddy.io/invocation/
build:cache --bes_backend=grpcs://modular.buildbuddy.io
build:cache --remote_cache=grpcs://modular.aws-us-west-2.buildbuddy.io
build:remote --config=cache
build:remote --remote_executor=grpcs://modular.buildbuddy.io
build:remote --local_test_jobs=HOST_CPUS
build:remote --jobs=1000
# Separate CI config that doesn't affect build output for verifing we share caches
build:ci-no-config --build_metadata=ROLE=PUBLIC-CI
build:ci-no-config --config=cache
build:ci-no-config --disk_cache=
build:ci-no-config --ui_event_filters=+WARNING
build:ci-no-config --verbose_failures
build:ci --remote_timeout=10m
build:ci-gpu-common --config=ci
build:ci-gpu-common --test_tag_filters=gpu,-clang-tidy,-mojo-docs
build:remote-h100 --config=remote
build:remote-h100 --repo_env=MODULAR_SKIP_AUTO_PLATFORMS=1
build:remote-h100 --platforms=//:h100-platform
build:remote-h100 --extra_execution_platforms=//:m7i-platform,//:h100-platform,@mojo_host_platform
build:ci-remote-h100 --config=ci-gpu-common
build:ci-remote-h100 --config=remote-h100
build:remote-mi300 --config=remote
build:remote-mi300 --repo_env=MODULAR_SKIP_AUTO_PLATFORMS=1
build:remote-mi300 --platforms=//:mi300-platform
build:remote-mi300 --extra_execution_platforms=//:m7i-platform,//:mi300-platform,@mojo_host_platform
build:ci-remote-mi300 --config=ci-gpu-common
build:ci-remote-mi300 --config=remote-mi300
test:ci-test --config=ci-no-config
test:ci-test --remote_download_outputs=minimal
test:ci-gpu-common --config=ci-test