From 6ef18ff4d5070b3061f6586ed554989a61c2d6c9 Mon Sep 17 00:00:00 2001 From: Kyle Lucke Date: Wed, 7 Feb 2024 09:04:20 -0800 Subject: [PATCH] Clean up stream_executor_pimpl.h include files. PiperOrigin-RevId: 605001572 --- xla/stream_executor/stream_executor_pimpl.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/xla/stream_executor/stream_executor_pimpl.h b/xla/stream_executor/stream_executor_pimpl.h index e22165f66a3a5..2cb1f247d3c1b 100644 --- a/xla/stream_executor/stream_executor_pimpl.h +++ b/xla/stream_executor/stream_executor_pimpl.h @@ -17,6 +17,7 @@ limitations under the License. #define XLA_STREAM_EXECUTOR_STREAM_EXECUTOR_PIMPL_H_ #include +#include #include #include #include @@ -43,10 +44,10 @@ limitations under the License. #include "xla/stream_executor/kernel_spec.h" #include "xla/stream_executor/launch_dim.h" #include "xla/stream_executor/module_spec.h" -#include "xla/stream_executor/numeric_options.h" #include "xla/stream_executor/platform.h" -#include "xla/stream_executor/platform/port.h" -#include "tsl/protobuf/dnn.pb.h" +#include "tsl/platform/errors.h" +#include "tsl/platform/logging.h" +#include "tsl/platform/statusor.h" namespace stream_executor { @@ -56,11 +57,6 @@ namespace internal { class StreamExecutorInterface; } // namespace internal -// Forward declaration of private friend class. -template -class ScopedTracer; - // A StreamExecutor manages a single device, in terms of executing work (kernel // launches) and memory management (allocation/deallocation, memory copies to // and from the device). It is conceptually the "handle" for a device -- Stream @@ -373,15 +369,10 @@ class StreamExecutor { Stream* FindAllocatedStream(void* gpu_stream); private: - template - friend class ScopedTracer; friend class Event; friend class Stream; template friend class TypedKernel; - template - friend struct ThenBlasImpl; // Synchronously allocates size bytes on the underlying platform and returns // a DeviceMemoryBase representing that allocation. In the case of failure,