Skip to content

Commit

Permalink
Enable NPU allocator only when NPU is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-intel committed Feb 4, 2025
1 parent 48f060b commit 8b68aa7
Showing 1 changed file with 1 addition and 1 deletion.
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))
add_definitions(-DUSE_OVEP_NPU_MEMORY=1)
endif()

Expand Down

0 comments on commit 8b68aa7

Please sign in to comment.