Skip to content
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

Conversation

yangwang201911
Copy link
Contributor

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

@github-actions github-actions bot added the category: AUTO OpenVINO AUTO device selection plugin label May 28, 2024
@yangwang201911 yangwang201911 marked this pull request as ready for review May 29, 2024 01:26
@yangwang201911 yangwang201911 requested a review from a team as a code owner May 29, 2024 01:26
(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");
}
Copy link
Contributor

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....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will implement.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@yangwang201911 yangwang201911 requested a review from songbell July 4, 2024 06:25
@@ -130,6 +130,53 @@ void AutoSchedule::init() {
m_firstload_promise.set_value();
});
};
auto update_cache_setting = [this](bool is_actual_cpu,
Copy link
Contributor

@songbell songbell Jul 5, 2024

Choose a reason for hiding this comment

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

Suggested change
auto update_cache_setting = [this](bool is_actual_cpu,
auto customize_helper_context_from_cache_setting = [this](bool is_actual_cpu,

@peterchen-intel peterchen-intel enabled auto-merge July 5, 2024 02:22
@peterchen-intel peterchen-intel added this pull request to the merge queue Jul 5, 2024
Merged via the queue into openvinotoolkit:master with commit 812dbd7 Jul 5, 2024
120 checks passed
ieliz pushed a commit to ieliz/openvino that referenced this pull request Jul 5, 2024
### 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: AUTO OpenVINO AUTO device selection plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants