From 31b8d85e955dbc237d7a5f7d19590e4beddc6dc4 Mon Sep 17 00:00:00 2001 From: Kyle Lucke Date: Wed, 2 Oct 2024 17:55:01 -0700 Subject: [PATCH] Remove unneeded dso_loader dependencies. PiperOrigin-RevId: 681659627 --- xla/service/gpu/BUILD | 1 - xla/stream_executor/cuda/BUILD | 1 - xla/stream_executor/sycl/BUILD | 1 - 3 files changed, 3 deletions(-) diff --git a/xla/service/gpu/BUILD b/xla/service/gpu/BUILD index f6f1f41d5544e..70291be472ec8 100644 --- a/xla/service/gpu/BUILD +++ b/xla/service/gpu/BUILD @@ -960,7 +960,6 @@ cc_library( "@tsl//tsl/platform:tensor_float_32_hdr_lib", ]) + if_rocm_is_configured([ #keep sorted - "//xla/stream_executor/platform:dso_loader", "//xla/stream_executor/rocm:amdhipblaslt_plugin", "//xla/stream_executor/rocm:hipblas_lt_header", "@local_config_rocm//rocm:rocm_headers", diff --git a/xla/stream_executor/cuda/BUILD b/xla/stream_executor/cuda/BUILD index 60d25bec6c369..473816c37adaf 100644 --- a/xla/stream_executor/cuda/BUILD +++ b/xla/stream_executor/cuda/BUILD @@ -1079,7 +1079,6 @@ cc_library( "//xla/stream_executor:scratch_allocator", "//xla/stream_executor/cuda:cuda_platform_id", "//xla/stream_executor/host:host_platform_id", - "//xla/stream_executor/platform:dso_loader", "//xla/stream_executor/rocm:rocm_platform_id", ] + if_google( select({ diff --git a/xla/stream_executor/sycl/BUILD b/xla/stream_executor/sycl/BUILD index 6f3e47845462d..03afcd832c840 100644 --- a/xla/stream_executor/sycl/BUILD +++ b/xla/stream_executor/sycl/BUILD @@ -86,6 +86,5 @@ cc_library( "//xla/stream_executor:dnn", "//xla/stream_executor:platform_manager", "//xla/stream_executor:scratch_allocator", - "//xla/stream_executor/platform:dso_loader", ] + if_static([":all_runtime"]), )