-
Notifications
You must be signed in to change notification settings - Fork 4.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
Add blake3 NEON instructions on linux arm64 #19384
Conversation
otherwise getting libunix_jni.so: undefined symbol: blake3_hash_many_neon see bazelbuild@d0de5e0
third_party/blake3/blake3.BUILD
Outdated
"@bazel_tools//src/conditions:linux_aarch64": [ | ||
"-DBLAKE3_USE_NEON=0", | ||
], |
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.
Shouldn't we instead include c/blake3_neon.c
like we do in the @bazel_tools//src/conditions:darwin_arm64
condition above, and set -DBLAKE3_USE_NEON=1
? Same for windows arm64 @meteorcloudy.
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.
Yeah that works, I can make the change for windows here as well, but I'll wait for @meteorcloudy comments.
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.
LGTM, /cc @tylerwilliams who made the blake3 contribution in #18682
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.
Tyler gave me the tip. I think we should do the Windows path as well.
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.
Yeah this change looks good to me too
Can you please also sync the blake3 BUILD file change to https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/blake3 ? |
You can have a new version named |
Context: I'm working on #19087, so in future, blake3 will come from the BCR. |
otherwise getting libunix_jni.so: undefined symbol: blake3_hash_many_neon see bazelbuild@d0de5e0 Closes bazelbuild#19384. PiperOrigin-RevId: 562479599 Change-Id: I8f0ca6b68486f5ea8db698f3f99526eb1c0de8a8
otherwise getting libunix_jni.so: undefined symbol: blake3_hash_many_neon see d0de5e0 Closes #19384. Commit 31812fe PiperOrigin-RevId: 562479599 Change-Id: I8f0ca6b68486f5ea8db698f3f99526eb1c0de8a8 Co-authored-by: Mauricio G <[email protected]>
otherwise getting libunix_jni.so: undefined symbol: blake3_hash_many_neon
see d0de5e0