diff --git a/xla/stream_executor/rocm/BUILD b/xla/stream_executor/rocm/BUILD index 15d801b90273d..2b824fb07b551 100644 --- a/xla/stream_executor/rocm/BUILD +++ b/xla/stream_executor/rocm/BUILD @@ -280,7 +280,6 @@ cc_library( ":rocblas_if_static", ":rocm_executor", ":rocm_platform_id", - "//xla/stream_executor/gpu:gpu_activation", "//xla/stream_executor/platform", "//xla/stream_executor/platform:dso_loader", "//xla/tsl/util:determinism_for_kernels", @@ -358,7 +357,6 @@ cc_library( "//xla/stream_executor", "//xla/stream_executor:fft", "//xla/stream_executor:plugin_registry", - "//xla/stream_executor/gpu:gpu_activation", "//xla/stream_executor/gpu:gpu_executor_header", "//xla/stream_executor/gpu:gpu_helpers_header", "//xla/stream_executor/gpu:gpu_kernel_header", @@ -410,11 +408,11 @@ cc_library( "//xla/stream_executor:dnn", "//xla/stream_executor:event_based_timer", "//xla/stream_executor:plugin_registry", - "//xla/stream_executor/gpu:gpu_activation", "//xla/stream_executor/gpu:gpu_driver_header", "//xla/stream_executor/gpu:gpu_executor_header", "//xla/stream_executor/gpu:gpu_stream_header", "//xla/stream_executor/gpu:gpu_types_header", + "//xla/stream_executor/gpu:scoped_activate_context", "//xla/stream_executor/platform", "//xla/stream_executor/platform:dso_loader", "//xla/tsl/util:determinism_for_kernels", @@ -569,7 +567,6 @@ cc_library( "//xla/stream_executor:blas", "//xla/stream_executor:event_based_timer", "//xla/stream_executor:host_or_device_scalar", - "//xla/stream_executor/gpu:gpu_activation", "//xla/stream_executor/gpu:gpu_blas_lt", "//xla/stream_executor/gpu:gpu_helpers_header", "//xla/stream_executor/gpu:gpu_stream_header", diff --git a/xla/stream_executor/rocm/rocblas_wrapper.h b/xla/stream_executor/rocm/rocblas_wrapper.h index a330390adf380..d7188176f2973 100644 --- a/xla/stream_executor/rocm/rocblas_wrapper.h +++ b/xla/stream_executor/rocm/rocblas_wrapper.h @@ -25,7 +25,6 @@ limitations under the License. #include "rocm/include/rocblas/rocblas.h" #include "rocm/rocm_config.h" -#include "xla/stream_executor/gpu/gpu_activation.h" #include "xla/stream_executor/platform/dso_loader.h" #include "xla/stream_executor/platform/port.h" #include "tsl/platform/env.h" diff --git a/xla/stream_executor/rocm/rocm_dnn.cc b/xla/stream_executor/rocm/rocm_dnn.cc index 7da887246c4da..aacc62fda1d33 100644 --- a/xla/stream_executor/rocm/rocm_dnn.cc +++ b/xla/stream_executor/rocm/rocm_dnn.cc @@ -31,10 +31,10 @@ limitations under the License. #include "rocm/rocm_config.h" #include "xla/stream_executor/dnn.h" #include "xla/stream_executor/event_based_timer.h" -#include "xla/stream_executor/gpu/gpu_activation.h" #include "xla/stream_executor/gpu/gpu_driver.h" #include "xla/stream_executor/gpu/gpu_executor.h" #include "xla/stream_executor/gpu/gpu_stream.h" +#include "xla/stream_executor/gpu/scoped_activate_context.h" #include "xla/stream_executor/platform/dso_loader.h" #include "xla/stream_executor/platform/initialize.h" #include "xla/stream_executor/plugin_registry.h"