Skip to content

Commit cfd76ff

Browse files
authored
Rename workspace (#9)
1 parent 3998a1a commit cfd76ff

33 files changed

+45
-45
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build --cxxopt=-std=c++17
44
build --repo_env USE_HERMETIC_CC_TOOLCHAIN=1
55

66
build:clang_local --noincompatible_enable_cc_toolchain_resolution
7-
build:clang_local --@rules_ml_toolchains//cc_toolchain/config:enable_hermetic_cc=False
7+
build:clang_local --@rules_ml_toolchain//cc_toolchain/config:enable_hermetic_cc=False
88
build:clang_local --repo_env USE_HERMETIC_CC_TOOLCHAIN=0
99

1010
# Disable clang extention that rejects type definitions within offsetof.

WORKSPACE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# ==============================================================================
1515

1616
workspace(
17-
name = "rules_ml_toolchains",
17+
name = "rules_ml_toolchain",
1818
)
1919

2020
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
@@ -169,14 +169,14 @@ register_toolchains("//cc_toolchain/...")
169169
##############################################################
170170
# NCCL configuration
171171
#load(
172-
# "@rules_ml_toolchains//nccl/hermetic:nccl_redist_init_repository.bzl",
172+
# "@rules_ml_toolchain//nccl/hermetic:nccl_redist_init_repository.bzl",
173173
# "nccl_redist_init_repository",
174174
#)
175175

176176
#nccl_redist_init_repository()
177177

178178
#load(
179-
# "@rules_ml_toolchains//nccl/hermetic:nccl_configure.bzl",
179+
# "@rules_ml_toolchain//nccl/hermetic:nccl_configure.bzl",
180180
# "nccl_configure",
181181
#)
182182

cc_toolchain/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ CUDA_TOOLS = if_cuda_hermetic_clang(
199199
cc_toolchain_import(
200200
name = "imports_lx64_lx64_cuda",
201201
deps = [
202-
"@rules_ml_toolchains//cc_toolchain/cuda/clang:inject_cuda_runtime_wrapper",
202+
"@rules_ml_toolchain//cc_toolchain/cuda/clang:inject_cuda_runtime_wrapper",
203203
"@sysroot_linux_x86_64//:includes_c",
204204
"@llvm_linux_x86_64//:includes",
205205
"@sysroot_linux_x86_64//:includes_system",

cc_toolchain/config/cuda.BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
# ==============================================================================
1515

1616
load(
17-
"@rules_ml_toolchains//cc_toolchain:cuda.bzl",
17+
"@rules_ml_toolchain//cc_toolchain:cuda.bzl",
1818
"cuda_package",
1919
)
2020
load(
21-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
21+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
2222
"cc_toolchain_import",
2323
)
2424

cc_toolchain/config/llvm_linux_x86_64.BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# ==============================================================================
1515

1616
load(
17-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
17+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
1818
"cc_toolchain_import",
1919
)
2020

cc_toolchain/config/llvm_macos_aarch64.BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# ==============================================================================
1515

1616
load(
17-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
17+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
1818
"cc_toolchain_import",
1919
)
2020

cc_toolchain/config/sysroot_macos_aarch64.BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
# ==============================================================================
1515

1616
load(
17-
"@rules_ml_toolchains//third_party/rules_cc_toolchain:sysroot.bzl",
17+
"@rules_ml_toolchain//third_party/rules_cc_toolchain:sysroot.bzl",
1818
"sysroot_package",
1919
)
2020
load(
21-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
21+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
2222
"cc_toolchain_import",
2323
)
2424

cc_toolchain/config/sysroot_ubuntu18_aarch64.BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
# ==============================================================================
1515

1616
load(
17-
"@rules_ml_toolchains//third_party/rules_cc_toolchain:sysroot.bzl",
17+
"@rules_ml_toolchain//third_party/rules_cc_toolchain:sysroot.bzl",
1818
"sysroot_package",
1919
)
2020
load(
21-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
21+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
2222
"cc_toolchain_import",
2323
)
2424

cc_toolchain/config/sysroot_ubuntu18_x86_64.BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
# ==============================================================================
1515

1616
load(
17-
"@rules_ml_toolchains//third_party/rules_cc_toolchain:sysroot.bzl",
17+
"@rules_ml_toolchain//third_party/rules_cc_toolchain:sysroot.bzl",
1818
"sysroot_package",
1919
)
2020
load(
21-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
21+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
2222
"cc_toolchain_import",
2323
)
2424

cc_toolchain/config/sysroot_ubuntu18_x86_64_gcc9.BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
# ==============================================================================
1515

1616
load(
17-
"@rules_ml_toolchains//third_party/rules_cc_toolchain:sysroot.bzl",
17+
"@rules_ml_toolchain//third_party/rules_cc_toolchain:sysroot.bzl",
1818
"sysroot_package",
1919
)
2020
load(
21-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
21+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
2222
"cc_toolchain_import",
2323
)
2424

cc_toolchain/config/sysroot_ubuntu20_x86_64.BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
# ==============================================================================
1515

1616
load(
17-
"@rules_ml_toolchains//third_party/rules_cc_toolchain:sysroot.bzl",
17+
"@rules_ml_toolchain//third_party/rules_cc_toolchain:sysroot.bzl",
1818
"sysroot_package",
1919
)
2020
load(
21-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
21+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
2222
"cc_toolchain_import",
2323
)
2424

cc_toolchain/cuda/clang/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# ==============================================================================
1515

1616
load(
17-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
17+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
1818
"cc_toolchain_import",
1919
)
2020

cc_toolchain/cuda/features/cuda_nvcc_feature.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ load(
3131
_feature = "feature",
3232
)
3333
load(
34-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
34+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
3535
"CcToolchainImportInfo",
3636
)
3737
# TODO: Check below lines

cc_toolchain/sysroots/macos_arm64/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ To set up the SDK for macOS:
2020

2121
4. Copy `MacOSX.sdk.tar.xz` to the computer with current project.
2222
Let's imagine that you copy or download SDK to `~/Downloads` directory and the project path is
23-
`~/Projects/rules_ml_toolchains`.
23+
`~/Projects/rules_ml_toolchain`.
2424
5. Extract MacOSX.sdk to the project directory `sysroots/macos_arm64` directory with help of next command:
2525

26-
`tar xf ~/Downloads/MacOSX.sdk.tar.xz -C ~/Projects/rules_ml_toolchains/sysroots/macos_arm64/`
26+
`tar xf ~/Downloads/MacOSX.sdk.tar.xz -C ~/Projects/rules_ml_toolchain/sysroots/macos_arm64/`
2727

2828
That's it, you project is ready for cross-platform builds where target is macOS ARM64.

third_party/gpus/cuda/hermetic/cuda_cublas.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/gpus/cuda/hermetic/cuda_cudart.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/gpus/cuda/hermetic/cuda_cudnn.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/gpus/cuda/hermetic/cuda_cudnn9.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/gpus/cuda/hermetic/cuda_cufft.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/gpus/cuda/hermetic/cuda_cupti.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load("@local_config_cuda//cuda:build_defs.bzl", "if_version_equal_or_greater_than")
33
load(
4-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
4+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
55
"cuda_rpath_flags",
66
)
77

third_party/gpus/cuda/hermetic/cuda_curand.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/gpus/cuda/hermetic/cuda_cusolver.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/gpus/cuda/hermetic/cuda_cusparse.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/gpus/cuda/hermetic/cuda_nvcc.BUILD.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22

33
load(
4-
"@rules_ml_toolchains//cc_toolchain/cuda/features:cuda_nvcc_feature.bzl",
4+
"@rules_ml_toolchain//cc_toolchain/cuda/features:cuda_nvcc_feature.bzl",
55
"cuda_nvcc_feature",
66
)
77

@@ -71,7 +71,7 @@ cuda_nvcc_feature(
7171
enabled = True,
7272
bin = ":bin/nvcc",
7373
version = "%{version_of_cuda}",
74-
visibility = ["@rules_ml_toolchains//cc_toolchain:__pkg__"],
74+
visibility = ["@rules_ml_toolchain//cc_toolchain:__pkg__"],
7575
)
7676

7777
cc_library(

third_party/gpus/cuda/hermetic/cuda_nvjitlink.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/gpus/cuda/hermetic/cuda_nvrtc.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/nccl/archive.BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ cc_library(
167167
visibility = ["//visibility:public"],
168168
deps = [
169169
"@local_config_cuda//cuda:cuda_headers",
170-
"@rules_ml_toolchains//third_party/xla/tsl/cuda:nccl_stub",
170+
"@rules_ml_toolchain//third_party/xla/tsl/cuda:nccl_stub",
171171
],
172172
)
173173

third_party/nccl/build_defs.bzl.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ def cuda_rdc_library(name, hdrs = None, copts = None, linkstatic = True, defines
341341
out = dlink_cc,
342342
gpu_archs = cuda_gpu_architectures(),
343343
nvlink_args = select({
344-
"@rules_ml_toolchains//third_party/xla/tsl:linux_x86_64": ["--cpu-arch=X86_64"],
345-
"@rules_ml_toolchains//third_party/xla/tsl:linux_ppc64le": ["--cpu-arch=PPC64LE"],
344+
"@rules_ml_toolchain//third_party/xla/tsl:linux_x86_64": ["--cpu-arch=X86_64"],
345+
"@rules_ml_toolchain//third_party/xla/tsl:linux_ppc64le": ["--cpu-arch=PPC64LE"],
346346
"//conditions:default": [],
347347
}),
348348
)

third_party/nccl/hermetic/cuda_nccl.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
licenses(["restricted"]) # NVIDIA proprietary license
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/nccl/nccl_configure.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ remote_nccl_configure = repository_rule(
203203
attrs = {
204204
"environ": attr.string_dict(),
205205
"_find_cuda_config": attr.label(
206-
default = Label("@rules_ml_toolchains//third_party/gpus:find_cuda_config.py"),
206+
default = Label("@rules_ml_toolchain//third_party/gpus:find_cuda_config.py"),
207207
),
208208
},
209209
)
@@ -213,7 +213,7 @@ nccl_configure = repository_rule(
213213
environ = _ENVIRONS,
214214
attrs = {
215215
"_find_cuda_config": attr.label(
216-
default = Label("@rules_ml_toolchains//third_party/gpus:find_cuda_config.py"),
216+
default = Label("@rules_ml_toolchain//third_party/gpus:find_cuda_config.py"),
217217
),
218218
},
219219
)

third_party/nccl/system.BUILD.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@bazel_skylib//rules:write_file.bzl", "write_file")
22
load(
3-
"@rules_ml_toolchains//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
3+
"@rules_ml_toolchain//third_party/xla/tsl/platform/default:cuda_build_defs.bzl",
44
"cuda_rpath_flags",
55
)
66

third_party/remote_config/remote_platform_configure.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _remote_platform_configure_impl(repository_ctx):
3838

3939
repository_ctx.template(
4040
"BUILD",
41-
Label("@rules_ml_toolchains//third_party/remote_config:BUILD.tpl"),
41+
Label("@rules_ml_toolchain//third_party/remote_config:BUILD.tpl"),
4242
{
4343
"%{platform}": platform,
4444
"%{exec_properties}": serialized_exec_properties,

third_party/rules_cc_toolchain/features/features.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ load(
4040
_feature = "feature",
4141
)
4242
load(
43-
"@rules_ml_toolchains//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
43+
"@rules_ml_toolchain//third_party/rules_cc_toolchain/features:cc_toolchain_import.bzl",
4444
"CcToolchainImportInfo",
4545
)
4646

0 commit comments

Comments
 (0)