Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tsl/platform/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ load(
"cc_library",
)

config_setting(
name = "libtpu_on_gce",
values = {"copt": "-DLIBTPU_ON_GCE"},
visibility = ["//visibility:public"],
)

package(
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
default_visibility = [
Expand Down
8 changes: 1 addition & 7 deletions tsl/profiler/lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -298,19 +298,13 @@ cc_library(
visibility = ["//visibility:public"],
)

config_setting(
name = "libtpu_on_gce",
values = {"copt": "-DLIBTPU_ON_GCE"},
visibility = ["//visibility:public"],
)

cc_library(
name = "nvtx_utils",
hdrs = ["nvtx_utils.h"],
visibility = ["//visibility:public"],
deps = select({
# Remove this once we clean up all the CUDA specific deps.
"libtpu_on_gce": [":nvtx_utils_external"],
"//tsl/platform:libtpu_on_gce": [":nvtx_utils_external"],
# Place holder for internal dependencies
"//conditions:default": [":nvtx_utils_impl"],
}),
Expand Down