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

More fixes of plugins.xml generation #9942

Merged
merged 4 commits into from
Jan 27, 2022

Conversation

nosovmik
Copy link
Contributor

@nosovmik nosovmik commented Jan 26, 2022

Details:

  • Unregistration is done by name (e.g. CPU), not by file name (ov_cpu_plugin)
  • Unregistered line is searched by name="MULTI" instead of just MULTI to not conflict with MULTI_WORK_MODE_AS_AUTO xml entry
  • List of all possible plugins from ov_runtime is kept as installation requires presence of plugins.xml
  • Registration update: if some entry already exists in XML - don't copy it. E.g.
    • Registration of 'TEMPLATE' is performed
    • Registration loops through existing plugins.xml
      • If name="TEMPLATE" is found - don't take it to newContent
      • If name like "myCustomPlugin" is found - take it
    • As result - "myCustomPlugin" will exist after update, but old "TEMPLATE" will be removed

Tickets:

  • 76886

@nosovmik nosovmik requested review from ilya-lavrenov, ilyachur, alpkn and a team January 26, 2022 16:41
@openvino-pushbot openvino-pushbot added the category: inference OpenVINO Runtime library - Inference label Jan 26, 2022
1) Unregistration is done by name (e.g. CPU), not by file name (ov_cpu_plugin)
2) Unregistered line is searched by name="MULTI" instead of just 'MULTI' to not conflict with MULTI_WORK_MODE_AS_AUTO entry
3) Removed list of all possible plugins from ov_runtime as logic shall not rely on this (not possible to add 3rd party plugins)
…ins are not built

Registration - if some entry already exists in XML - don't copy it.
E.g.
- Registration of 'TEMPLATE' is performed
- Registration loops through existing plugins.xml
   - If name="TEMPLATE" is found - don't take it to newContent
   - If name like "myCustomPlugin" is found - take it
- As result - "myCustomPlugin" will exist after update, but old "TEMPLATE" will be removed
Copy link
Contributor

@alpkn alpkn left a comment

Choose a reason for hiding this comment

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

vpux plugin built up on ov makefiles including this change produces correct plugins.xml

@ilya-lavrenov ilya-lavrenov added this to the 2022.1 milestone Jan 27, 2022
@ilya-lavrenov ilya-lavrenov merged commit cf328d2 into openvinotoolkit:master Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: inference OpenVINO Runtime library - Inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants