-
Notifications
You must be signed in to change notification settings - Fork 14.1k
ggml-cpu: BMI2 is only available on amd64 #17528
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
base: master
Are you sure you want to change the base?
Conversation
MSVC doesn't define __BMI2__ so it must be defined by by CMake. It was being set whenever GGML_BMI2 is set, but that results in a failure (`error LNK2019: unresolved external symbol __pdep_u64`) when targeting x86 (aka 32 bit) Windows. The fix is to only set __BMI2__ when targeting amd64.
|
Thanks! |
|
Here's a build log in GitHub Actions which I believe provides all that info, demonstrating the failure when targeting win32: |
|
Ok i guess it's because of this line: Line 151 in 4abef75
As a quick hack, maybe you can set the env SOURCE_DATE_EPOCH and select the flags you want?
A normal build gives: But with Then add the flags you want ( edit: not |
|
That's a workaround, but that won't fix the |
|
after taking a look, i think its just because of the missing https://github.com/angt/pywhispercpp/actions/runs/19744492579/job/56575850622 |
|
@candrews, can we close this PR? |
If there's an approach I should be taking that would work, I'm not understanding it, sorry. I'm trying: And on Windows it fails with: Which is the 32 bit Windows problem. The combination of I'm happy to try and test things - thank you very much for working with me on this effort :) |
Align with other HWCAP2 feature flags and define HWCAP2_SVE2 when it's missing from system headers See ggml-org#17528 Signed-off-by: Adrien Gallouët <[email protected]>
This align with other HWCAP2 feature flags See ggml-org#17528 Signed-off-by: Adrien Gallouët <[email protected]>
|
Here is the diff between our branches: candrews/pywhispercpp@cpu-all-variants...angt:pywhispercpp:cpu-all-variants I just made a PR to fix the |
This align with other HWCAP2 feature flags See #17528 Signed-off-by: Adrien Gallouët <[email protected]>
|
Does #17474 need to make to https://github.com/ggml-org/whisper.cpp as well? |
Yes, we need to wait the next ggml sync |
MSVC doesn't define BMI2 so it must be defined by by CMake. It was being set whenever GGML_BMI2 is set, but that results in a failure (
error LNK2019: unresolved external symbol __pdep_u64) when targeting x86 (aka 32 bit) Windows. The fix is to only set BMI2 when targeting amd64.Make sure to read the contributing guidelines before submitting a PR