Skip to content

Commit c6efed8

Browse files
committed
disable data transfer for ovep
1 parent 2b81a0f commit c6efed8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

onnxruntime/core/providers/openvino/ov_factory.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class OpenVINOEpPluginFactory : public OrtEpFactory, public ApiPtrs {
127127
return factory->GetVendor();
128128
}
129129

130-
static uint32_t ORT_API_CALL GetVendorIdImpl([[maybe_unused]] const OrtEpFactory* this_ptr) noexcept {
130+
static uint32_t ORT_API_CALL GetVendorIdImpl(const OrtEpFactory* /*this_ptr*/) noexcept {
131131
return OpenVINOEpPluginFactory::vendor_id_;
132132
}
133133

@@ -141,8 +141,9 @@ 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,
144+
static OrtStatus* ORT_API_CALL CreateDataTransferImpl(OrtEpFactory* /*this_ptr*/,
145145
OrtDataTransferImpl** data_transfer) noexcept {
146+
*data_transfer = nullptr; // return nullptr to indicate that this EP does not support data transfer.
146147
return nullptr;
147148
}
148149

0 commit comments

Comments
 (0)