From 6f7605523840c6f7cc861f9c36bfbd10232cd31e Mon Sep 17 00:00:00 2001 From: Kyle Lucke Date: Tue, 17 Sep 2024 15:50:50 -0700 Subject: [PATCH] Delete unused cuda:cuda_activation_header target. PiperOrigin-RevId: 675739479 --- xla/stream_executor/cuda/BUILD | 9 ----- xla/stream_executor/cuda/cuda_activation.h | 39 ---------------------- 2 files changed, 48 deletions(-) delete mode 100644 xla/stream_executor/cuda/cuda_activation.h diff --git a/xla/stream_executor/cuda/BUILD b/xla/stream_executor/cuda/BUILD index 7ba519d17629c..9904f00f4f89a 100644 --- a/xla/stream_executor/cuda/BUILD +++ b/xla/stream_executor/cuda/BUILD @@ -268,15 +268,6 @@ xla_test( ], ) -# The activation library is tightly coupled to the executor library. -# TODO(leary) split up cuda_executor.cc so that this can stand alone. -cc_library( - name = "cuda_activation_header", - hdrs = ["cuda_activation.h"], - visibility = ["//visibility:public"], - deps = ["//xla/stream_executor/gpu:gpu_activation_header"], -) - cuda_only_cc_library( name = "cublas_lt_header", hdrs = [ diff --git a/xla/stream_executor/cuda/cuda_activation.h b/xla/stream_executor/cuda/cuda_activation.h deleted file mode 100644 index f43737c4f226c..0000000000000 --- a/xla/stream_executor/cuda/cuda_activation.h +++ /dev/null @@ -1,39 +0,0 @@ -/* Copyright 2015 The OpenXLA Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -==============================================================================*/ - -// This file contains APIs that assume a StreamExecutor is backed by CUDA. -// It reaches into the CUDA implementation to activate an underlying CUDA -// context. -// -// Having this file separate from cuda/cuda_executor.h means that dependent -// code does not also have to depend on cuda.h. - -#ifndef XLA_STREAM_EXECUTOR_CUDA_CUDA_ACTIVATION_H_ -#define XLA_STREAM_EXECUTOR_CUDA_CUDA_ACTIVATION_H_ - -#include "xla/stream_executor/gpu/gpu_activation.h" - -namespace stream_executor { - -class StreamExecutor; - -namespace cuda { - -using ScopedActivateExecutorContext = gpu::ScopedActivateExecutorContext; - -} // namespace cuda -} // namespace stream_executor - -#endif // XLA_STREAM_EXECUTOR_CUDA_CUDA_ACTIVATION_H_