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

cpu: reorder: use jit uni reorder for bf16 #1915

Merged
merged 1 commit into from
May 17, 2024

Conversation

Ryo-not-rio
Copy link
Contributor

@Ryo-not-rio Ryo-not-rio commented May 13, 2024

Description

use jit uni reorder for aarch64 src=bf16 and dst=bf16
add restriction for bf16 use when beta == 0.f as it is unsupported

Checklist

General

  • Do all unit and benchdnn tests (make test and make test_benchdnn_*) pass locally for each commit?
  • Have you formatted the code using clang-format?

Performance improvements

  • Have you submitted performance data that demonstrates performance improvements?
    CLIP model inference was 2x faster on PyTorch with this patch

@mgouicem
Copy link
Contributor

Thanks for the PR. Tagging @jondea

@mgouicem mgouicem requested review from dzarukin and jondea and removed request for dzarukin May 15, 2024 09:51
@mgouicem mgouicem added the platform:cpu-aarch64 Codeowner: @oneapi-src/onednn-cpu-aarch64 label May 15, 2024
@jondea
Copy link
Contributor

jondea commented May 15, 2024

Thanks @mgouicem I'm sorting this now with @Ryo-not-rio

add restriction for bf16 use when beta == 0.f as it is unsupported

use jit uni reorder for aarch64 src=bf16 and dst=bf16
@jondea
Copy link
Contributor

jondea commented May 15, 2024

Sorry for the duplicate PR, unfortunately we couldn't reopen the original because it had been force pushed. Not sure why GitHub makes that restriction.

@mgouicem
Copy link
Contributor

No Problem at all. Just wanted to have your input on this PR and if you ran your internal validation on that.

@Ryo-not-rio
Copy link
Contributor Author

Hi @mgouicem, I'm a member of the same team as Jonathan and we have run the validation tests

@mgouicem mgouicem merged commit e41e332 into oneapi-src:main May 17, 2024
10 checks passed
@vpirogov vpirogov added this to the v3.6 milestone May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:cpu-aarch64 Codeowner: @oneapi-src/onednn-cpu-aarch64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants