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

Integration with GraphCompiler #155

Merged
merged 3 commits into from
Aug 1, 2024
Merged

Integration with GraphCompiler #155

merged 3 commits into from
Aug 1, 2024

Conversation

AndreyPavlenko
Copy link
Collaborator

@AndreyPavlenko AndreyPavlenko commented Jul 26, 2024

Graph Compiler is disabled by default, to enable build with -DENABLE_GRAPH_COMPILER=ON

}();
return context;
}
#else
Copy link
Owner

@slyalin slyalin Jul 30, 2024

Choose a reason for hiding this comment

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

Could you activate the graph compiler path in run-time similarly how it is done for tpp-mlir? Via OV_MLIR_GRAPH_COMPILER environment variable that is activated by default when built with graph compiler. If both TPP-MLIR and graph compiled are available and activated via evn var in the same time, then error should be raised.

It will allow comparison of different modes in run-time without re-building.

Copy link
Collaborator Author

@AndreyPavlenko AndreyPavlenko Jul 30, 2024

Choose a reason for hiding this comment

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

May I introduce a new env var - OV_MLIR_MODE that could be either TPP or GC? In this case we avoid the error.

Copy link
Owner

Choose a reason for hiding this comment

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

OK. When this variable is not set or empty, then upstream MLIR works only.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct.

Grapth Compiler is disabled by default, to enable build with
-DENABLE_GRAPH_COMPILER=ON
@slyalin slyalin merged commit 463210d into slyalin:mlir Aug 1, 2024
13 of 29 checks passed
@kurapov-peter kurapov-peter linked an issue Aug 1, 2024 that may be closed by this pull request
slyalin pushed a commit that referenced this pull request Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OV CPU integration
3 participants