Skip to content

Commit dc15e45

Browse files
klucketensorflower-gardener
authored andcommitted
Remove StreamExecutor::GetGraphConvolveRunners wire-through method.
PiperOrigin-RevId: 602534079
1 parent 6c5e9f8 commit dc15e45

File tree

3 files changed

+5
-32
lines changed

3 files changed

+5
-32
lines changed

third_party/xla/xla/service/gpu/conv_algorithm_picker.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ absl::StatusOr<std::vector<GenericConvRunner>> GetAlgorithms(
186186
std::vector<std::unique_ptr<const se::dnn::GraphConvRunner>> runners;
187187
// This path is cuDNN-only, where the DeviceMemoryBase arguments and the
188188
// allocator are unused; so, they're all provided as nullptr.
189-
TF_RETURN_IF_ERROR(stream_exec->GetGraphConvolveRunners(
189+
auto dnn = stream_exec->AsDnn();
190+
if (dnn == nullptr) {
191+
return absl::InvalidArgumentError("No DNN in stream executor.");
192+
}
193+
TF_RETURN_IF_ERROR(dnn->GetGraphConvolveRunners(
190194
kind, input_type, output_type, stream, config.input_descriptor,
191195
config.filter_descriptor, config.output_descriptor, config.conv_desc,
192196
use_fallback, numeric_options, &runners, config.serialized_graph));

third_party/xla/xla/stream_executor/stream_executor_pimpl.cc

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -173,26 +173,6 @@ int64_t StreamExecutor::GetDeviceLoad() const {
173173
return implementation_->GetDeviceLoad();
174174
}
175175

176-
absl::Status StreamExecutor::GetGraphConvolveRunners(
177-
dnn::ConvolutionKind kind, dnn::DataType input_type,
178-
dnn::DataType output_type, Stream* stream,
179-
const dnn::BatchDescriptor& input_descriptor,
180-
const dnn::FilterDescriptor& filter_descriptor,
181-
const dnn::BatchDescriptor& output_descriptor,
182-
const dnn::ConvolutionDescriptor& convolution_descriptor, bool use_fallback,
183-
const NumericOptions& numeric_options,
184-
std::vector<std::unique_ptr<const dnn::GraphConvRunner>>* out_exec_plans,
185-
std::string serialized_graph) {
186-
dnn::DnnSupport* dnn_support = AsDnn();
187-
if (!dnn_support) {
188-
return absl::UnimplementedError("DNN library is not found.");
189-
}
190-
return dnn_support->GetGraphConvolveRunners(
191-
kind, input_type, output_type, stream, input_descriptor,
192-
filter_descriptor, output_descriptor, convolution_descriptor,
193-
use_fallback, numeric_options, out_exec_plans, serialized_graph);
194-
}
195-
196176
absl::Status StreamExecutor::GetFusedConvolveRunners(
197177
bool use_cudnn_frontend, dnn::ConvolutionKind kind,
198178
dnn::DataType input_type, dnn::DataType bias_type,

third_party/xla/xla/stream_executor/stream_executor_pimpl.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -279,17 +279,6 @@ class StreamExecutor {
279279
// will be reflected in "free".
280280
bool DeviceMemoryUsage(int64_t* free, int64_t* total) const;
281281

282-
absl::Status GetGraphConvolveRunners(
283-
dnn::ConvolutionKind kind, dnn::DataType input_type,
284-
dnn::DataType output_type, Stream* stream,
285-
const dnn::BatchDescriptor& input_descriptor,
286-
const dnn::FilterDescriptor& filter_descriptor,
287-
const dnn::BatchDescriptor& output_descriptor,
288-
const dnn::ConvolutionDescriptor& convolution_descriptor,
289-
bool use_fallback, const NumericOptions& numeric_options,
290-
std::vector<std::unique_ptr<const dnn::GraphConvRunner>>* out_exec_plans,
291-
std::string serialized_graph);
292-
293282
absl::Status GetFusedConvolveRunners(
294283
bool use_cudnn_frontend, dnn::ConvolutionKind kind,
295284
dnn::DataType input_type, dnn::DataType bias_type,

0 commit comments

Comments
 (0)