9
9
)
10
10
load (
11
11
"@xla//xla/tsl/profiler/builds:build_config.bzl" ,
12
+ "nvtx_pie_external_deps" ,
12
13
"tf_profiler_copts" ,
13
14
"tf_profiler_pybind_cc_library_wrapper" ,
14
15
)
16
+ load ("//third_party/bazel_skylib/lib:dicts.bzl" , "dicts" )
15
17
16
18
# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])
17
19
@@ -292,7 +294,7 @@ cc_library(
292
294
)
293
295
294
296
cc_library (
295
- name = "nvtx_utils_libtpu " ,
297
+ name = "nvtx_utils_external " ,
296
298
srcs = ["nvtx_utils_stub.cc" ],
297
299
hdrs = ["nvtx_utils.h" ],
298
300
visibility = ["//visibility:public" ],
@@ -308,11 +310,13 @@ cc_library(
308
310
name = "nvtx_utils" ,
309
311
hdrs = ["nvtx_utils.h" ],
310
312
visibility = ["//visibility:public" ],
311
- deps = select ({
312
- # Remove this once we clean up all the CUDA specific deps.
313
- "libtpu_on_gce" : [":nvtx_utils_libtpu" ],
314
- "//conditions:default" : [":nvtx_utils_impl" ],
315
- }),
313
+ deps = select (dicts .add (
314
+ nvtx_pie_external_deps (),
315
+ {
316
+ ":libtpu_on_gce" : [":nvtx_utils_external" ],
317
+ "//conditions:default" : [":nvtx_utils_impl" ],
318
+ },
319
+ )),
316
320
)
317
321
318
322
cc_library (
0 commit comments