Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/onnxruntime_providers_openvino.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
message(FATAL_ERROR "OpenVINO 2024.5 and newer are supported. Please, use latest OpenVINO release")
endif()

if(OpenVINO_VERSION VERSION_GREATER_EQUAL 2024.4)
if(onnxruntime_USE_OPENVINO_NPU AND (OpenVINO_VERSION VERSION_GREATER_EQUAL 2024.4))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix mitigates the bug which was filed to run on CPU without NPU dependency.

If -use_openvino or -use_openvino CPU is used during build time, then RemoteTensor optimization for NPU will be disabled at runtime which could have a perf impact on models using Remote tensors. @sfatimar need to identify steps used to build OV EP for apps using NPU and investigate impact to existing apps.

add_definitions(-DUSE_OVEP_NPU_MEMORY=1)
endif()

Expand Down