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

Skip new params for old driver compiler #25453

Conversation

XinWangIntel
Copy link
Contributor

@XinWangIntel XinWangIntel commented Jul 9, 2024

Details:

There are new added options for NPU_COMPILATION_MODE_PARAMS, need to skip for old driver compiler.

Tickets:

  • 146197

@github-actions github-actions bot added the category: NPU OpenVINO NPU plugin label Jul 9, 2024
@XinWangIntel XinWangIntel force-pushed the remove-new-params-for-old-driver branch from 5a7584b to 0d9ecb1 Compare July 9, 2024 06:00
@XinWangIntel XinWangIntel marked this pull request as ready for review July 9, 2024 06:00
@XinWangIntel XinWangIntel requested review from a team as code owners July 9, 2024 06:00
@XinWangIntel XinWangIntel force-pushed the remove-new-params-for-old-driver branch from 0d9ecb1 to 244573e Compare July 9, 2024 06:02
@PatrikStepan PatrikStepan added this to the 2024.3 milestone Jul 9, 2024
@XinWangIntel XinWangIntel requested a review from a team as a code owner July 9, 2024 06:32
@github-actions github-actions bot added category: inference OpenVINO Runtime library - Inference category: CPP API OpenVINO CPP API bindings labels Jul 9, 2024
@moslex moslex added the priority: high High piority label Jul 9, 2024
optLevelStr << "optimization-level" << KEY_VALUE_SEPARATOR << "\\d+";
std::ostringstream perfHintStr;
perfHintStr << "performance-hint-override" << KEY_VALUE_SEPARATOR << "\\S+";
_logger.warning(
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not we first check if ptimization-level/performance-hint-override are present?

auto areOptionsSupported = (compilerVersion.major > 5) || (compilerVersion.major == 5 && compilerVersion.minor > 7);
auto contaisOptions = content.contains(optLevelStr) || content.contains(perfHintStr); // pseudo-code

if (!areOptionsSupported  && contaisOptions) { 
// write message
// remove options
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added more strict check now, please help to review again

@XinWangIntel XinWangIntel force-pushed the remove-new-params-for-old-driver branch from 4f1070b to 178281d Compare July 10, 2024 08:47
@XinWangIntel XinWangIntel force-pushed the remove-new-params-for-old-driver branch from 178281d to 9f14590 Compare July 10, 2024 09:50
@PatrikStepan PatrikStepan added this pull request to the merge queue Jul 10, 2024
Merged via the queue into openvinotoolkit:master with commit 5fd3ba9 Jul 10, 2024
122 checks passed
spran180 pushed a commit to spran180/openvino that referenced this pull request Jul 27, 2024
### Details:
There are new added options for NPU_COMPILATION_MODE_PARAMS, need to
skip for old driver compiler.

### Tickets:
 - *146197*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: CPP API OpenVINO CPP API bindings category: inference OpenVINO Runtime library - Inference category: NPU OpenVINO NPU plugin Code Freeze priority: high High piority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants