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

[CPU] Throw when release_memory is called during inference #27520

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

maxnick
Copy link
Contributor

@maxnick maxnick commented Nov 12, 2024

Details:

This PR changes the behavior of the CompiledModel::release_memory() implementation in the CPU plugin for the situation when the method is being called concurrently with the other graph state modifying methods (e.g. graph initialization, inference, properties request). This is necessary to ensure thread safety and provide a clear defined behavior when the method is called concurrently.
Also, the PR contains some refactoring of the Infer request implementation, aimed at decoupling the InferRequest implementation from the compiled model internals and providing a safer interface that ensures thread safe access to the CPU graph structures.

@maxnick maxnick requested review from a team as code owners November 12, 2024 10:41
@github-actions github-actions bot added the category: CPU OpenVINO CPU plugin label Nov 12, 2024
@maxnick maxnick added this to the 2025.0 milestone Nov 12, 2024
@maxnick
Copy link
Contributor Author

maxnick commented Nov 14, 2024

@EgorDuplensky , could you please review?

@maxnick maxnick requested a review from EgorDuplensky December 4, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: CPU OpenVINO CPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants