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

ZHigh to ONNX optimization is default on. Switch flag from enable to disable #3074

Merged

Conversation

AlexandreEichenberger
Copy link
Collaborator

ZHigh to ONNX is default on, and should rarely be disabled. Having a compiler flag to explicitly disable it is more intuitive

Copy link
Collaborator

@tungld tungld left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -183,7 +183,7 @@ void addONNXToZHighPasses(mlir::PassManager &pm) {
// sub, ...) that are of `stick -> light-weight op -> unstick`, it's better to
// use CPU instead of NNPA to avoid stick/unstick. CPU is efficient to handle
// these ops, e.g vectorize the computation.
if (nnpaEnableZHighToOnnx)
if (! nnpaDisableZHighToOnnx)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like the space caused clang-format check failed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tx

Signed-off-by: Alexandre Eichenberger <[email protected]>
Signed-off-by: Alexandre Eichenberger <[email protected]>
@AlexandreEichenberger AlexandreEichenberger merged commit 2bede1a into onnx:main Feb 13, 2025
6 checks passed
@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #16291 [push] ZHigh to ONNX optimizati... started at 15:06

@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #16293 [push] ZHigh to ONNX optimizati... started at 16:06

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #16291 [push] ZHigh to ONNX optimizati... passed after 1 hr 38 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #16293 [push] ZHigh to ONNX optimizati... passed after 2 hr 0 min

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants