-
Notifications
You must be signed in to change notification settings - Fork 12.2k
ggml-quants: Provide ggml_vqtbl1q_u8 for 64bit compatibility #5711
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
Conversation
android-build workflow will fail as it's fetching the current llama.cpp dependency from master (which of course doesn't have the neon v7a fix for now) |
@ggerganov, let me know if you'd rather I split this PR into two separate ones instead (one that adds the ARM-V check and then another one that updates the build workflow). |
ggml-quants.c
Outdated
@@ -9452,7 +9452,7 @@ void ggml_vec_dot_iq3_s_q8_K (int n, float * GGML_RESTRICT s, size_t bs, const v | |||
|
|||
const int nb = n / QK_K; | |||
|
|||
#if defined(__ARM_NEON) | |||
#if defined(__ARM_NEON) && (__ARM_ARCH >= 8) |
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.
Instead of this, we should add ggml_vqtbl1q_u8
similar to how we have ggml_vqtbl1q_s8
and replace all usages of vqtbl1q_u8
with ggml_vqtbl1q_u8
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.
Amended and compiled locally in and Android project
vqtbl1q_u8 is not part of arm v7 neon library
…rg#5711) * [ggml-quants] Provide ggml_vqtbl1q_u8 for 64bit compatibility vqtbl1q_u8 is not part of arm v7 neon library * [android-example] Remove abi filter after arm v7a fix * [github-workflows] Do not skip Android armeabi-v7a build
…rg#5711) * [ggml-quants] Provide ggml_vqtbl1q_u8 for 64bit compatibility vqtbl1q_u8 is not part of arm v7 neon library * [android-example] Remove abi filter after arm v7a fix * [github-workflows] Do not skip Android armeabi-v7a build
Additionally unblocks Android example and workflow build for Android build with armeabi-v7a target.
Function
vqtbl1q_u8
is not available under neon ARM-V7.