Skip to content

Commit ee61655

Browse files
nitins17copybara-github
authored andcommitted
Create new Windows RBE toolchain
PiperOrigin-RevId: 501425812
1 parent fdc6fb2 commit ee61655

File tree

8 files changed

+2116
-3
lines changed

8 files changed

+2116
-3
lines changed

.bazelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ build:rbe_linux_py3_base --python_path="/usr/local/bin/python3.9"
557557
build:rbe_linux_py3_base --repo_env=TF_PYTHON_CONFIG_REPO="@ubuntu20.04-gcc9_manylinux2014-cuda11.2-cudnn8.1-tensorrt7.2_config_python3.9"
558558

559559
build:rbe_win --config=rbe
560-
build:rbe_win --crosstool_top="//tensorflow/tools/toolchains/win/tf_win_06152022:toolchain"
561-
build:rbe_win --extra_toolchains="//tensorflow/tools/toolchains/win/tf_win_06152022:cc-toolchain-x64_windows"
560+
build:rbe_win --crosstool_top="//tensorflow/tools/toolchains/win/tf_win_01112023:toolchain"
561+
build:rbe_win --extra_toolchains="//tensorflow/tools/toolchains/win/tf_win_01112023:cc-toolchain-x64_windows"
562562
build:rbe_win --extra_execution_platforms="//tensorflow/tools/toolchains/win:rbe_windows_ltsc2019"
563563
build:rbe_win --host_platform="//tensorflow/tools/toolchains/win:rbe_windows_ltsc2019"
564564
build:rbe_win --platforms="//tensorflow/tools/toolchains/win:rbe_windows_ltsc2019"

opensource_only.files

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ tools/toolchains/remote_config/BUILD:
189189
tools/toolchains/win/BUILD:
190190
tools/toolchains/win/bazel_211/BUILD:
191191
tools/toolchains/win/tf_win_01072022/BUILD:
192+
tools/toolchains/win/tf_win_01112023/BUILD:
192193
tools/toolchains/win/tf_win_01122022/BUILD:
193194
tools/toolchains/win/tf_win_01242022/BUILD:
194195
tools/toolchains/win/tf_win_01252022/BUILD:

tools/toolchains/win/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ platform(
1717
remote_execution_properties = """
1818
properties:{
1919
name: "container-image"
20-
value: "docker://gcr.io/tensorflow-testing/tf-win2019-rbe@sha256:450a2ba8d8e990212ca504e52a47155da75159d5baccad0bdd90dfdced3cc174"
20+
value: "docker://gcr.io/tensorflow-testing/tf-win2019-rbe@sha256:768fbd44022f6f4e3f76701bf2fc623f514ce9fe1a5796ea9533d2ac3e0474de"
2121
}
2222
properties:{
2323
name: "OSFamily"

tools/toolchains/win/tf_win_01112023/BUILD

Lines changed: 630 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Copyright 2019 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""A Starlark cc_toolchain configuration rule"""
16+
17+
load(
18+
"@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
19+
"feature",
20+
"tool_path",
21+
)
22+
23+
def _impl(ctx):
24+
toolchain_identifier = "stub_armeabi-v7a"
25+
host_system_name = "armeabi-v7a"
26+
target_system_name = "armeabi-v7a"
27+
target_cpu = "armeabi-v7a"
28+
target_libc = "armeabi-v7a"
29+
compiler = "compiler"
30+
abi_version = "armeabi-v7a"
31+
abi_libc_version = "armeabi-v7a"
32+
cc_target_os = None
33+
builtin_sysroot = None
34+
action_configs = []
35+
36+
supports_pic_feature = feature(name = "supports_pic", enabled = True)
37+
supports_dynamic_linker_feature = feature(name = "supports_dynamic_linker", enabled = True)
38+
features = [supports_dynamic_linker_feature, supports_pic_feature]
39+
40+
cxx_builtin_include_directories = []
41+
artifact_name_patterns = []
42+
make_variables = []
43+
44+
tool_paths = [
45+
tool_path(name = "ar", path = "/bin/false"),
46+
tool_path(name = "cpp", path = "/bin/false"),
47+
tool_path(name = "dwp", path = "/bin/false"),
48+
tool_path(name = "gcc", path = "/bin/false"),
49+
tool_path(name = "gcov", path = "/bin/false"),
50+
tool_path(name = "ld", path = "/bin/false"),
51+
tool_path(name = "llvm-profdata", path = "/bin/false"),
52+
tool_path(name = "nm", path = "/bin/false"),
53+
tool_path(name = "objcopy", path = "/bin/false"),
54+
tool_path(name = "objdump", path = "/bin/false"),
55+
tool_path(name = "strip", path = "/bin/false"),
56+
]
57+
58+
return cc_common.create_cc_toolchain_config_info(
59+
ctx = ctx,
60+
features = features,
61+
action_configs = action_configs,
62+
artifact_name_patterns = artifact_name_patterns,
63+
cxx_builtin_include_directories = cxx_builtin_include_directories,
64+
toolchain_identifier = toolchain_identifier,
65+
host_system_name = host_system_name,
66+
target_system_name = target_system_name,
67+
target_cpu = target_cpu,
68+
target_libc = target_libc,
69+
compiler = compiler,
70+
abi_version = abi_version,
71+
abi_libc_version = abi_libc_version,
72+
tool_paths = tool_paths,
73+
make_variables = make_variables,
74+
builtin_sysroot = builtin_sysroot,
75+
cc_target_os = cc_target_os,
76+
)
77+
78+
armeabi_cc_toolchain_config = rule(
79+
implementation = _impl,
80+
attrs = {},
81+
provides = [CcToolchainConfigInfo],
82+
)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This file is generated by cc_configure and contains builtin include directories
2+
that msvc reported. This file is a dependency of every compilation action and
3+
changes to it will be reflected in the action cache key. When some of these
4+
paths change, Bazel will make sure to rerun the action, even though none of
5+
declared action inputs or the action commandline changes.
6+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE
2+
gcr.io/tensorflow-testing/tf-win2019-docker-staging latest sha256:768fbd44022f6f4e3f76701bf2fc623f514ce9fe1a5796ea9533d2ac3e0474de 8f5265f62e0c 5 minutes ago 15.9GB

0 commit comments

Comments
 (0)