Skip to content

Commit 095cdd8

Browse files
hanrach9copybara-github
authored andcommitted
Share PrimitiveTypeToNbDLDataType with xla.
`PrimitiveTypeToNbDLDataType` is used in `LiteralToNdarray` in `xla_compiler` (jaxlib) which has python bindings for xla types. Create `xla_literal` which only contains bindings for `xla::Literal`. - Moving `dlpack_support` out of jaxlib to third_party/tensorflow/compiler/xla/python - Branched `dlpack` in jaxlib to third_party/tensorflow/compiler/xla/python so that the new xla dlpack target does not depend on pyclient. PiperOrigin-RevId: 815912796
1 parent 065851d commit 095cdd8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tsl/platform/BUILD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ load(
2727
"cc_library",
2828
)
2929

30+
config_setting(
31+
name = "libtpu_on_gce",
32+
values = {"copt": "-DLIBTPU_ON_GCE"},
33+
visibility = ["//visibility:public"],
34+
)
35+
3036
package(
3137
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
3238
default_visibility = [

tsl/profiler/lib/BUILD

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,19 +298,13 @@ cc_library(
298298
visibility = ["//visibility:public"],
299299
)
300300

301-
config_setting(
302-
name = "libtpu_on_gce",
303-
values = {"copt": "-DLIBTPU_ON_GCE"},
304-
visibility = ["//visibility:public"],
305-
)
306-
307301
cc_library(
308302
name = "nvtx_utils",
309303
hdrs = ["nvtx_utils.h"],
310304
visibility = ["//visibility:public"],
311305
deps = select({
312306
# Remove this once we clean up all the CUDA specific deps.
313-
"libtpu_on_gce": [":nvtx_utils_external"],
307+
"//tsl/platform:libtpu_on_gce": [":nvtx_utils_external"],
314308
# Place holder for internal dependencies
315309
"//conditions:default": [":nvtx_utils_impl"],
316310
}),

0 commit comments

Comments
 (0)