From 09e928039c021c8894bba022c403e7e0f8ab19a2 Mon Sep 17 00:00:00 2001 From: Artur Wojcik Date: Tue, 10 Mar 2026 09:30:24 +0100 Subject: [PATCH] make compiled kernel name more unique --- .../core/session/plugin_ep/ep_plugin_provider_interfaces.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onnxruntime/core/session/plugin_ep/ep_plugin_provider_interfaces.cc b/onnxruntime/core/session/plugin_ep/ep_plugin_provider_interfaces.cc index f8cba9435a6bc..27cdfcde4aa27 100644 --- a/onnxruntime/core/session/plugin_ep/ep_plugin_provider_interfaces.cc +++ b/onnxruntime/core/session/plugin_ep/ep_plugin_provider_interfaces.cc @@ -101,10 +101,10 @@ struct PluginEpMetaDefNameFunctor { const std::string& prefix) : generator_(generator), graph_viewer_(graph_viewer), prefix_(prefix) {} - std::string operator()() { + std::string operator()() const { uint64_t model_hash = 0; int id = generator_.GenerateId(graph_viewer_, model_hash); - return MakeString(prefix_, "_", model_hash, "_", id); + return MakeString(prefix_, "_", graph_viewer_.Name(), "_", model_hash, "_", id); } const ModelMetadefIdGenerator& generator_;