-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AUTO] Disable CPU model cache for fallback #24726
[AUTO] Disable CPU model cache for fallback #24726
Conversation
…into ywang2/disable_CPU_model_cache_for_fallback
(m_context->m_startup_fallback || m_context->m_runtime_fallback)) { | ||
m_compile_context[CPU].m_device_info.config[ov::cache_dir.name()] = ""; | ||
LOG_INFO_TAG("Clear cache dir setting for CPU accelerator"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to move all cache related customization/operations to one function/one single entry?
we have cache operations a few lines above this change, and then some other cache operation here....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will implement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
@@ -130,6 +130,53 @@ void AutoSchedule::init() { | |||
m_firstload_promise.set_value(); | |||
}); | |||
}; | |||
auto update_cache_setting = [this](bool is_actual_cpu, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto update_cache_setting = [this](bool is_actual_cpu, | |
auto customize_helper_context_from_cache_setting = [this](bool is_actual_cpu, |
### Details: - Pass empty cache_dir to CPU plugin if cache_dir is set by user app when enable_startup_fallback or enable_runtime_fallback is true ### Tickets: - 141026 --------- Co-authored-by: Chen Peter <[email protected]>
Details:
Tickets: