Skip to content

[NPU] Add error handling for missing configuration file in parseConfigFile #30134

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seowwj
Copy link
Contributor

@seowwj seowwj commented Apr 15, 2025

Details:

Currently, compile_tool ignores missing config files if it's passed in using -c parameter.
This fix will check if the config file given by the user can be opened and exists, and will throw an exception if it doesn't.

Tickets:

  • E-164501

@seowwj seowwj requested review from a team as code owners April 15, 2025 03:07
@github-actions github-actions bot added the category: NPU OpenVINO NPU plugin label Apr 15, 2025
@sys-openvino-ci sys-openvino-ci added the ExternalPR External contributor label Apr 15, 2025
@seowwj
Copy link
Contributor Author

seowwj commented Apr 15, 2025

If a non-existent config file path is given, an error would be thrown:
image

@LeiChenIntel
Copy link

Hello @darrenbroche @Maxim-Doronin, the change for ticket E-164501 is ready. Could you help to check? Now the compile-tool triggers an error if config file fails to be opened.

@darrenbroche
Copy link

Hello @darrenbroche @Maxim-Doronin, the change for ticket E-164501 is ready. Could you help to check? Now the compile-tool triggers an error if config file fails to be opened.

I don't know how to build the tool to verify manually, but the code change and screenshot on this thread look good to me. Thanks!

@Maxim-Doronin
Copy link
Contributor

Hi @darrenbroche ! FYI: you can refer to how-to-build article

@Maxim-Doronin
Copy link
Contributor

build_jenkins

@ArtemySkrebkov ArtemySkrebkov added this pull request to the merge queue Apr 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: NPU OpenVINO NPU plugin ExternalPR External contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants