-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
c26733d
to
6acdf0b
Compare
}(); | ||
return context; | ||
} | ||
#else |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
src/common/transformations/src/transformations/mlir/convert.cpp
Outdated
Show resolved
Hide resolved
src/common/transformations/src/transformations/mlir/convert.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Sergey Lyalin <[email protected]>
Graph Compiler is disabled by default, to enable build with -DENABLE_GRAPH_COMPILER=ON