Skip to content

Disable driver caching for NPU when epctx enabled for ov version greater then 2024.3#443

Merged
sfatimar merged 1 commit intoovep-develop-lnl-1.2from
jatin/ov_2024_4_cache_fix
Sep 6, 2024
Merged

Disable driver caching for NPU when epctx enabled for ov version greater then 2024.3#443
sfatimar merged 1 commit intoovep-develop-lnl-1.2from
jatin/ov_2024_4_cache_fix

Conversation

@jatinwadhwa921
Copy link

Disable driver caching for NPU when epctx enabled for ov version greater then 2024.3

device_property = std::make_pair("NPU_COMPILER_TYPE", env_npu_compiler_type);
}
device_config.emplace(ov::device::properties("NPU", device_property));
if (global_context_.export_ep_ctx_blob) {
Copy link

Choose a reason for hiding this comment

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

should not the if comment be also under #Ifdef

Copy link
Author

Choose a reason for hiding this comment

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

made the changes

}
device_config.emplace(ov::device::properties("NPU", device_property));
if (global_context_.export_ep_ctx_blob) {
#if (OPENVINO_VERSION_MAJOR >= 2024) && (OPENVINO_VERSION_MINOR > 3)
Copy link

Choose a reason for hiding this comment

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

We might need to change this condition for later releases of OV like 2025.1

@saurabhkale17 saurabhkale17 force-pushed the jatin/ov_2024_4_cache_fix branch from 9e5ab07 to 6561626 Compare September 6, 2024 15:18
@sfatimar sfatimar force-pushed the ovep-develop-lnl-1.2 branch from 236df14 to b0a8bee Compare September 6, 2024 15:30
@sfatimar sfatimar force-pushed the jatin/ov_2024_4_cache_fix branch from 6561626 to df7febe Compare September 6, 2024 15:41
@sfatimar
Copy link

sfatimar commented Sep 6, 2024

LGTM

@sfatimar sfatimar merged commit f24a235 into ovep-develop-lnl-1.2 Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants