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

test: aarch64: Fix unimplemented error when --cpu-isa-hints=prefer_ymm #2208

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

Ryo-not-rio
Copy link
Contributor

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

@Ryo-not-rio Ryo-not-rio requested a review from a team as a code owner November 7, 2024 16:11
@@ -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);
Copy link
Contributor

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.

Copy link
Contributor

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).

Copy link
Contributor Author

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

@theComputeKid
Copy link
Contributor

Could you reformat the commit message to: test: aarch64: Fix unimplemented error when --cpu-isa-hints=prefer_ymm

The PR checks should have caught this but they are probably not working as intended.

@Ryo-not-rio Ryo-not-rio changed the title Fix unimplemented error when --cpu-isa-hints=prefer_ymm on aarch64 test: aarch64: Fix unimplemented error when --cpu-isa-hints=prefer_ymm Nov 8, 2024
…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
@spalicki spalicki merged commit c242796 into oneapi-src:main Nov 19, 2024
23 of 24 checks passed
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.

5 participants