From 5ba2a1ed9798ea79c38162cd8d9b2e8eeba51de9 Mon Sep 17 00:00:00 2001 From: mingyue Date: Thu, 9 Jan 2025 22:32:13 -0700 Subject: [PATCH] fix rebase error --- onnxruntime/core/providers/vitisai/imp/global_api.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/onnxruntime/core/providers/vitisai/imp/global_api.cc b/onnxruntime/core/providers/vitisai/imp/global_api.cc index b1eeb49dfd..be068812af 100644 --- a/onnxruntime/core/providers/vitisai/imp/global_api.cc +++ b/onnxruntime/core/providers/vitisai/imp/global_api.cc @@ -49,6 +49,8 @@ int create_ep_context_nodes_c( vaip_core::DllSafe>* ret_value); std::vector>* compile_onnx_model_with_options_c( const std::string& model_path, const onnxruntime::Graph& graph, const onnxruntime::ProviderOptions& options); +std::vector>* compile_onnx_model_vitisai_ep_with_error_handling_c( + const std::string& model_path, const onnxruntime::Graph& graph, const onnxruntime::ProviderOptions& options, void* status, vaip_core::error_report_func func); int vitisai_ep_on_run_start_c( const std::vector>& eps, const void* state, vaip_core::DllSafe (*get_config_entry)(const void* state, const char* entry_name)); @@ -56,6 +58,9 @@ int vitisai_ep_set_ep_dynamic_options_c( const std::vector>& eps, const char* const* keys, const char* const* values, size_t kv_len); +void profiler_collect_c( + std::vector& api_events, + std::vector& kernel_events); }; vaip_core::OrtApiForVaip* create_org_api_hook(); struct OrtVitisAIEpAPI { @@ -94,10 +99,12 @@ struct OrtVitisAIEpAPI { this->initialize_onnxruntime_vitisai_ep = initialize_onnxruntime_vitisai_ep_c; this->compile_onnx_model_with_options = compile_onnx_model_with_options_c; + this->compile_onnx_model_vitisai_ep_with_error_handling = compile_onnx_model_vitisai_ep_with_error_handling_c; this->create_ep_context_nodes = create_ep_context_nodes_c; this->vitisai_ep_on_run_start = vitisai_ep_on_run_start_c; this->vitisai_ep_set_ep_dynamic_options = vitisai_ep_set_ep_dynamic_options_c; this->vaip_get_version = vaip_get_version_c; + this->profiler_collect = profiler_collect_c; auto& env = Provider_GetHost()->Env__Default(); auto& logger = *Provider_GetHost()->LoggingManager_GetDefaultLogger();