-
Notifications
You must be signed in to change notification settings - Fork 1k
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
test: aarch64: Fix unimplemented error when --cpu-isa-hints=prefer_ymm #2208
Conversation
tests/benchdnn/dnnl_common.cpp
Outdated
@@ -272,7 +272,7 @@ void init_isa_settings() { | |||
if (hints.get() == isa_hints_t::no_hints) | |||
DNN_SAFE_V(dnnl_set_cpu_isa_hints(dnnl_cpu_isa_no_hints)); | |||
else if (hints.get() == isa_hints_t::prefer_ymm) | |||
DNN_SAFE_V(dnnl_set_cpu_isa_hints(dnnl_cpu_isa_prefer_ymm)); | |||
dnnl_set_cpu_isa_hints(dnnl_cpu_isa_prefer_ymm); |
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.
I feel that updating this function makes more sense. Aarch64 is fine to return success
unconditionally.
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.
+1 on Dmitri's solution as it is the simplest solution.
Down the line, it might also make sense to guard the platform specific isa/isa_hint enum values in the headers. Currently, DNNL_X64 is not exposed there but we could add it to dnnl_config.h (similar to what we do for experimental features).
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.
Thank you for the review, I have update the code as suggested
Could you reformat the commit message to: The PR checks should have caught this but they are probably not working as intended. |
2fc6ff9
to
c6de06a
Compare
…m on aarch64 When running with --cpu-isa-hints=prefer_ymm, tests fail on aarch64 due to an unimplmented error. This change will instead allow the code to run the reference implementations. Reproducible: ``` ./tests/benchdnn/benchdnn --conv --cpu-isa-hints=prefer_ymm --dt=bf16:bf16:bf16 --stag=axb --dtag=axb --attr-post-ops=sum+tanh:1:1 g1ic64ih1000oc64oh1000kh3ph128dh127 ``` Change-Id: Ibf075ad71da0b870002c8cbfc3fefcaa883ef9b6
c6de06a
to
b8d3cd8
Compare
When running with --cpu-isa-hints=prefer_ymm, tests fail on aarch64 due to an unimplmented error. This change will instead allow the code to run the reference implementations.
Reproducible: