Add bzl_library build target for various Skylark libraries.
PiperOrigin-RevId: 270958099
This commit is contained in:
parent
8e571e4306
commit
93a0fb7e51
@ -31,6 +31,7 @@ load(
|
||||
"//third_party/mkl:build_defs.bzl",
|
||||
"if_mkl_ml",
|
||||
)
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
package(
|
||||
default_visibility = [":internal"],
|
||||
@ -457,6 +458,22 @@ filegroup(
|
||||
),
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "tensorflow_bzl",
|
||||
srcs = ["tensorflow.bzl"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//tensorflow/core/platform:build_config_root_bzl",
|
||||
"//tensorflow/core/platform:cuda_build_defs_bzl",
|
||||
"//third_party/mkl:build_defs_bzl",
|
||||
"//third_party/mkl_dnn:build_defs_bzl",
|
||||
"//third_party/ngraph:build_defs_bzl",
|
||||
"@local_config_cuda//cuda:build_defs_bzl",
|
||||
"@local_config_rocm//rocm:build_defs_bzl",
|
||||
"@local_config_tensorrt//:build_defs_bzl",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "grpc",
|
||||
visibility = ["//visibility:public"],
|
||||
|
@ -39,6 +39,7 @@ load(
|
||||
"@local_config_rocm//rocm:build_defs.bzl",
|
||||
"if_rocm_is_configured",
|
||||
)
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
package(
|
||||
default_visibility = [
|
||||
@ -815,3 +816,13 @@ exports_files(
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_config_root_bzl",
|
||||
srcs = ["default/build_config_root.bzl"],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "cuda_build_defs_bzl",
|
||||
srcs = ["default/cuda_build_defs.bzl"],
|
||||
)
|
||||
|
9
third_party/gpus/cuda/BUILD
vendored
9
third_party/gpus/cuda/BUILD
vendored
@ -0,0 +1,9 @@
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
9
third_party/gpus/cuda/BUILD.tpl
vendored
9
third_party/gpus/cuda/BUILD.tpl
vendored
@ -1,4 +1,5 @@
|
||||
load(":build_defs.bzl", "cuda_header_library")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
|
||||
|
||||
@ -165,4 +166,12 @@ cc_library(
|
||||
data = [":cuda-nvvm"],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
%{copy_rules}
|
||||
|
9
third_party/gpus/cuda/BUILD.windows.tpl
vendored
9
third_party/gpus/cuda/BUILD.windows.tpl
vendored
@ -1,4 +1,5 @@
|
||||
load(":build_defs.bzl", "cuda_header_library")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
|
||||
|
||||
@ -159,4 +160,12 @@ cc_library(
|
||||
data = [":cuda-nvvm"],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
%{copy_rules}
|
||||
|
6
third_party/gpus/rocm/BUILD
vendored
6
third_party/gpus/rocm/BUILD
vendored
@ -0,0 +1,6 @@
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
)
|
7
third_party/gpus/rocm/BUILD.tpl
vendored
7
third_party/gpus/rocm/BUILD.tpl
vendored
@ -1,3 +1,5 @@
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
@ -109,4 +111,9 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
)
|
||||
|
||||
%{copy_rules}
|
||||
|
8
third_party/mkl/BUILD
vendored
8
third_party/mkl/BUILD
vendored
@ -1,5 +1,7 @@
|
||||
licenses(["notice"]) # 3-Clause BSD
|
||||
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
config_setting(
|
||||
name = "build_with_mkl",
|
||||
define_values = {
|
||||
@ -78,3 +80,9 @@ cc_library(
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
14
third_party/mkl_dnn/BUILD
vendored
14
third_party/mkl_dnn/BUILD
vendored
@ -1,4 +1,11 @@
|
||||
package(licenses = ["notice"])
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
package(
|
||||
default_visibility = [
|
||||
"//tensorflow:__subpackages__",
|
||||
],
|
||||
licenses = ["notice"],
|
||||
)
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
@ -19,3 +26,8 @@ config_setting(
|
||||
},
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
)
|
||||
|
8
third_party/ngraph/BUILD
vendored
8
third_party/ngraph/BUILD
vendored
@ -1 +1,9 @@
|
||||
licenses(["notice"]) # 3-Clause BSD
|
||||
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
9
third_party/tensorrt/BUILD.tpl
vendored
9
third_party/tensorrt/BUILD.tpl
vendored
@ -4,6 +4,7 @@
|
||||
licenses(["notice"])
|
||||
|
||||
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
@ -31,4 +32,12 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
%{copy_rules}
|
||||
|
@ -1,4 +1,5 @@
|
||||
load(":build_defs.bzl", "cuda_header_library")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
|
||||
|
||||
@ -165,6 +166,14 @@ cc_library(
|
||||
data = [":cuda-nvvm"],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "cuda-include",
|
||||
outs = [
|
||||
|
@ -1,4 +1,5 @@
|
||||
load(":build_defs.bzl", "cuda_header_library")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
|
||||
|
||||
@ -165,6 +166,14 @@ cc_library(
|
||||
data = [":cuda-nvvm"],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "cuda-include",
|
||||
outs = [
|
||||
|
@ -31,6 +31,14 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "tensorrt_lib",
|
||||
outs = [
|
||||
|
@ -1,4 +1,5 @@
|
||||
load(":build_defs.bzl", "cuda_header_library")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
|
||||
|
||||
@ -165,6 +166,14 @@ cc_library(
|
||||
data = [":cuda-nvvm"],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "cuda-include",
|
||||
outs = [
|
||||
|
@ -4,6 +4,7 @@
|
||||
licenses(["notice"])
|
||||
|
||||
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
@ -31,6 +32,14 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "tensorrt_lib",
|
||||
outs = [
|
||||
|
@ -1,4 +1,5 @@
|
||||
load(":build_defs.bzl", "cuda_header_library")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
|
||||
|
||||
@ -165,6 +166,14 @@ cc_library(
|
||||
data = [":cuda-nvvm"],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "cuda-include",
|
||||
outs = [
|
||||
|
@ -1,3 +1,5 @@
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
@ -113,6 +115,11 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "rocm-include",
|
||||
outs = [
|
||||
|
@ -4,6 +4,7 @@
|
||||
licenses(["notice"])
|
||||
|
||||
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
@ -28,6 +29,14 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "tensorrt_lib",
|
||||
outs = [
|
||||
|
@ -4,6 +4,7 @@
|
||||
licenses(["notice"])
|
||||
|
||||
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts")
|
||||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
@ -31,6 +32,14 @@ cc_library(
|
||||
],
|
||||
)
|
||||
|
||||
bzl_library(
|
||||
name = "build_defs_bzl",
|
||||
srcs = ["build_defs.bzl"],
|
||||
deps = [
|
||||
"@bazel_skylib//lib:selects",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "tensorrt_lib",
|
||||
outs = [
|
||||
|
Loading…
Reference in New Issue
Block a user