Skip to content

Commit 626b15b

Browse files
jakeharmon8copybara-github
authored andcommitted
Rename TSL from @org_tensorflow to @tsl
PiperOrigin-RevId: 501697933
1 parent 1a028f7 commit 626b15b

31 files changed

+93
-93
lines changed

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
workspace(name = "org_tensorflow")
1+
workspace(name = "tsl")
22

33
# Initialize the TensorFlow repository and all dependencies.
44
#

third_party/compute_library/build_defs.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
def if_enable_acl(if_true, if_false = []):
22
return select({
3-
"@org_tensorflow//third_party/compute_library:build_with_acl": if_true,
3+
"@tsl//third_party/compute_library:build_with_acl": if_true,
44
"//conditions:default": if_false,
55
})
66

@@ -15,6 +15,6 @@ def acl_deps():
1515
inclusion in the deps attribute of rules.
1616
"""
1717
return select({
18-
"@org_tensorflow//third_party/compute_library:build_with_acl": ["@compute_library//:arm_compute"],
18+
"@tsl//third_party/compute_library:build_with_acl": ["@compute_library//:arm_compute"],
1919
"//conditions:default": [],
2020
})

third_party/curl.BUILD

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,13 @@ cc_library(
342342
"lib/vtls/x509asn1.c",
343343
"lib/vtls/x509asn1.h",
344344
] + select({
345-
"@org_tensorflow//tsl:macos": [
345+
"@tsl//tsl:macos": [
346346
"lib/vtls/sectransp.c",
347347
],
348-
"@org_tensorflow//tsl:ios": [
348+
"@tsl//tsl:ios": [
349349
"lib/vtls/sectransp.c",
350350
],
351-
"@org_tensorflow//tsl:windows": CURL_WIN_SRCS,
351+
"@tsl//tsl:windows": CURL_WIN_SRCS,
352352
"//conditions:default": [
353353
],
354354
}),
@@ -367,7 +367,7 @@ cc_library(
367367
"include/curl/websockets.h",
368368
],
369369
copts = select({
370-
"@org_tensorflow//tsl:windows": CURL_WIN_COPTS,
370+
"@tsl//tsl:windows": CURL_WIN_COPTS,
371371
"//conditions:default": [
372372
"-Iexternal/curl/lib",
373373
"-D_GNU_SOURCE",
@@ -380,10 +380,10 @@ cc_library(
380380
"-Wno-string-plus-int",
381381
],
382382
}) + select({
383-
"@org_tensorflow//tsl:macos": [
383+
"@tsl//tsl:macos": [
384384
"-fno-constant-cfstrings",
385385
],
386-
"@org_tensorflow//tsl:windows": [
386+
"@tsl//tsl:windows": [
387387
# See curl.h for discussion of write size and Windows
388388
"/DCURL_MAX_WRITE_SIZE=16384",
389389
],
@@ -394,19 +394,19 @@ cc_library(
394394
defines = ["CURL_STATICLIB"],
395395
includes = ["include"],
396396
linkopts = select({
397-
"@org_tensorflow//tsl:android": [
397+
"@tsl//tsl:android": [
398398
"-pie",
399399
],
400-
"@org_tensorflow//tsl:macos": [
400+
"@tsl//tsl:macos": [
401401
"-Wl,-framework",
402402
"-Wl,CoreFoundation",
403403
"-Wl,-framework",
404404
"-Wl,SystemConfiguration",
405405
"-Wl,-framework",
406406
"-Wl,Security",
407407
],
408-
"@org_tensorflow//tsl:ios": [],
409-
"@org_tensorflow//tsl:windows": [
408+
"@tsl//tsl:ios": [],
409+
"@tsl//tsl:windows": [
410410
"-DEFAULTLIB:ws2_32.lib",
411411
"-DEFAULTLIB:advapi32.lib",
412412
"-DEFAULTLIB:crypt32.lib",
@@ -420,8 +420,8 @@ cc_library(
420420
deps = [
421421
"@zlib",
422422
] + select({
423-
"@org_tensorflow//tsl:ios": [],
424-
"@org_tensorflow//tsl:windows": [],
423+
"@tsl//tsl:ios": [],
424+
"@tsl//tsl:windows": [],
425425
"//conditions:default": [
426426
"@boringssl//:ssl",
427427
],
@@ -527,7 +527,7 @@ cc_binary(
527527
"src/tool_xattr.h",
528528
],
529529
copts = select({
530-
"@org_tensorflow//tsl:windows": CURL_BIN_WIN_COPTS,
530+
"@tsl//tsl:windows": CURL_BIN_WIN_COPTS,
531531
"//conditions:default": [
532532
"-Iexternal/curl/lib",
533533
"-D_GNU_SOURCE",

third_party/git/git_configure.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ def _git_conf_impl(repository_ctx):
3838
)
3939

4040
tensorflow_root_path = str(repository_ctx.path(
41-
Label("@org_tensorflow//:BUILD"),
41+
Label("@tsl//:BUILD"),
4242
))[:-len("BUILD")]
4343
python_script_path = repository_ctx.path(
44-
Label("@org_tensorflow//tensorflow/tools/git:gen_git_source.py"),
44+
Label("@tsl//tensorflow/tools/git:gen_git_source.py"),
4545
)
4646
generated_files_path = repository_ctx.path("gen")
4747

third_party/googleapis/repository_rules.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ def config_googleapis():
3636
grpc = True,
3737
rules_override = {
3838
"cc_proto_library": [
39-
"@org_tensorflow//third_party/googleapis:build_rules.bzl",
39+
"@tsl//third_party/googleapis:build_rules.bzl",
4040
"",
4141
],
4242
"cc_grpc_library": [
43-
"@org_tensorflow//third_party/googleapis:build_rules.bzl",
43+
"@tsl//third_party/googleapis:build_rules.bzl",
4444
"",
4545
],
4646
},

third_party/gpus/cuda_configure.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ def _create_local_cuda_repository(repository_ctx):
10021002
"cuda:cuda_config.py",
10031003
]}
10041004
tpl_paths["cuda:BUILD"] = _tpl_path(repository_ctx, "cuda:BUILD.windows" if is_windows(repository_ctx) else "cuda:BUILD")
1005-
find_cuda_config_script = repository_ctx.path(Label("@org_tensorflow//third_party/gpus:find_cuda_config.py.gz.base64"))
1005+
find_cuda_config_script = repository_ctx.path(Label("@tsl//third_party/gpus:find_cuda_config.py.gz.base64"))
10061006

10071007
cuda_config = _get_cuda_config(repository_ctx, find_cuda_config_script)
10081008

@@ -1101,7 +1101,7 @@ def _create_local_cuda_repository(repository_ctx):
11011101
],
11021102
))
11031103

1104-
check_cuda_libs_script = repository_ctx.path(Label("@org_tensorflow//third_party/gpus:check_cuda_libs.py"))
1104+
check_cuda_libs_script = repository_ctx.path(Label("@tsl//third_party/gpus:check_cuda_libs.py"))
11051105
cuda_libs = _find_libs(repository_ctx, check_cuda_libs_script, cuda_config)
11061106
cuda_lib_srcs = []
11071107
cuda_lib_outs = []

third_party/gpus/rocm_configure.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def _create_local_rocm_repository(repository_ctx):
549549
"rocm:rocm_config.h",
550550
]}
551551

552-
find_rocm_config_script = repository_ctx.path(Label("@org_tensorflow//third_party/gpus:find_rocm_config.py.gz.base64"))
552+
find_rocm_config_script = repository_ctx.path(Label("@tsl//third_party/gpus:find_rocm_config.py.gz.base64"))
553553

554554
bash_bin = get_bash_bin(repository_ctx)
555555
rocm_config = _get_rocm_config(repository_ctx, bash_bin, find_rocm_config_script)

third_party/hwloc/hwloc.BUILD

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ expand_template(
5050
name = "include_hwloc_autogen_config_h",
5151
out = "include/hwloc/autogen/config.h",
5252
substitutions = select({
53-
"@org_tensorflow//tsl:linux_x86_64": _INCLUDE_HWLOC_AUTOIGEN_CONFIG_H_LINUX_SUBS,
53+
"@tsl//tsl:linux_x86_64": _INCLUDE_HWLOC_AUTOIGEN_CONFIG_H_LINUX_SUBS,
5454
"//conditions:default": _INCLUDE_HWLOC_AUTOIGEN_CONFIG_H_COMMON_SUBS,
5555
}),
5656
template = "include/hwloc/autogen/config.h.in",
@@ -224,7 +224,7 @@ expand_template(
224224
name = "move_static_components_h",
225225
out = "hwloc/static-components.h",
226226
substitutions = {"&hwloc_linuxio_component": "//&hwloc_linuxio_component"},
227-
template = "@org_tensorflow//third_party/hwloc:static-components.h",
227+
template = "@tsl//third_party/hwloc:static-components.h",
228228
)
229229

230230
cc_library(
@@ -259,21 +259,21 @@ cc_library(
259259
"include/private/private.h",
260260
"include/private/xml.h",
261261
] + select({
262-
"@org_tensorflow//tsl:linux_x86_64": [
262+
"@tsl//tsl:linux_x86_64": [
263263
"hwloc/topology-linux.c",
264264
"include/hwloc/linux.h",
265265
"hwloc/topology-x86.c",
266266
"include/private/cpuid-x86.h",
267267
],
268-
"@org_tensorflow//tsl:linux_aarch64": [
268+
"@tsl//tsl:linux_aarch64": [
269269
"hwloc/topology-linux.c",
270270
"include/hwloc/linux.h",
271271
],
272-
"@org_tensorflow//tsl:linux_ppc64le": [
272+
"@tsl//tsl:linux_ppc64le": [
273273
"hwloc/topology-linux.c",
274274
"include/hwloc/linux.h",
275275
],
276-
"@org_tensorflow//tsl:freebsd": [
276+
"@tsl//tsl:freebsd": [
277277
"hwloc/topology-freebsd.c",
278278
"hwloc/topology-x86.c",
279279
"include/private/cpuid-x86.h",

third_party/llvm_openmp/BUILD

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Build file for OpenMP library that is part of llvm
22

33
load(
4-
"@org_tensorflow//tsl:tsl.bzl",
4+
"@tsl//tsl:tsl.bzl",
55
"if_linux_x86_64",
66
"if_macos",
77
"if_windows",
88
)
99
load(
10-
"@org_tensorflow//third_party/llvm_openmp:cmake_vars.bzl",
10+
"@tsl//third_party/llvm_openmp:cmake_vars.bzl",
1111
"cmake_var_string",
1212
"expand_cmake_vars",
1313
)
1414
load(
15-
"@org_tensorflow//third_party/llvm_openmp:openmp.bzl",
15+
"@tsl//third_party/llvm_openmp:openmp.bzl",
1616
"dict_add",
1717
"libiomp5_cc_binary",
1818
)
@@ -36,7 +36,7 @@ py_binary(
3636
)
3737

3838
kmp_i18n_os_type = select({
39-
"@org_tensorflow//tsl:windows": "win",
39+
"@tsl//tsl:windows": "win",
4040
"//conditions:default": "lin",
4141
})
4242

@@ -114,7 +114,7 @@ omp_vars_win = {
114114
}
115115

116116
omp_all_cmake_vars = select({
117-
"@org_tensorflow//tsl:windows": cmake_var_string(
117+
"@tsl//tsl:windows": cmake_var_string(
118118
dict_add(
119119
omp_vars,
120120
omp_vars_win,

third_party/llvm_openmp/cmake_vars.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def expand_cmake_vars(name, src, dst, cmake_vars):
4646
cmake_vars: a string containing the CMake variables, as generated by
4747
cmake_var_string.
4848
"""
49-
expand_cmake_vars_tool = "@org_tensorflow//third_party/llvm_openmp:expand_cmake_vars"
49+
expand_cmake_vars_tool = "@tsl//third_party/llvm_openmp:expand_cmake_vars"
5050
native.genrule(
5151
name = name,
5252
srcs = [src],

0 commit comments

Comments
 (0)