-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Fix for issue #13170 #13176
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
Fix for issue #13170 #13176
Conversation
@shalinib-ibm Any chance of adding PPC to the CI build to more easily catch this in the future? |
@CISC agree that it would be nice to have some sort of CI for power arch. Will have to work on it. |
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.
Can you explain why this change is necessary? There are other cases where GGML_F32_VEC
is used as a single scalar instead of an array, so it is not clear to me why this is necessary here.
@slaren, in this piece of code, sum is expected to be a vector. So we are making. a vector of vector with size 1. This way it does not break x86 or arm. llama.cpp/ggml/src/ggml-cpu/vec.cpp Line 28 in 5a63980
Hence this change is necessary to fix the bug on power architectures. |
With AVX2 this expands to In any case, it seems to me that the solution would to define |
Build fails with compilation error on power pc. This patch fixes the same. Tested with unit tests run via --build <build_dir> && cd <build_dir> && make test Signed-off-by: Shalini Salomi Bodapati <[email protected]>
Hi slaren, As per your suggestion, I have defined GGML_F32_VEC_ZERO to {0.0f} for power. Can you please review ? |
Build fails with compilation error on power pc.
This patch fixes the same.
Tested with unit tests run via
cmake --build <build_dir> && cd <build_dir> && make test
Make sure to read the contributing guidelines before submitting a PR