Skip to content

Commit 3133166

Browse files
RyanMetcalfeInt8ankitm3k
authored andcommitted
ovep factory: Implement CreateDataTransfer to avoid crash in RegisterExecutionProviderLibrary
1 parent bc23800 commit 3133166

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

onnxruntime/core/providers/openvino/ov_factory.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ OpenVINOEpPluginFactory::OpenVINOEpPluginFactory(ApiPtrs apis, const std::string
3939
OrtEpFactory::GetVendorId = GetVendorIdImpl;
4040
OrtEpFactory::GetSupportedDevices = GetSupportedDevicesImpl;
4141
OrtEpFactory::GetVersion = GetVersionImpl;
42+
OrtEpFactory::CreateDataTransfer = CreateDataTransferImpl;
43+
4244
ort_version_supported = ORT_API_VERSION; // Set to the ORT version we were compiled with.
4345
}
4446

onnxruntime/core/providers/openvino/ov_factory.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ class OpenVINOEpPluginFactory : public OrtEpFactory, public ApiPtrs {
141141
return ApiEntry([&]() { return factory->GetSupportedDevices(devices, num_devices, ep_devices, max_ep_devices, p_num_ep_devices); });
142142
}
143143

144+
static OrtStatus* ORT_API_CALL CreateDataTransferImpl(OrtEpFactory* this_ptr,
145+
OrtDataTransferImpl** data_transfer) noexcept {
146+
return nullptr;
147+
}
148+
144149
static const char* ORT_API_CALL GetVersionImpl(const OrtEpFactory*) noexcept {
145150
return ORT_VERSION;
146151
}

0 commit comments

Comments
 (0)