mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5335] [Engine] Zen2 kernels suffer from microcode pdep #3184
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Licenser on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5335
In older Zen generations (2 and before) AMD's CPUs implement the pdep instruction as microcode rather than in silicone.
Those instructions used under the
__BMI2__flag, in the IQ1_S and IQ1_M kernels for the dot product.__BMI2__is defined for the AMD Zen2 and before products when compiling natively.in short pdep make Zen2 go slooooowwww :(
Proposal as implemented in #3472 (happy to change on feedback):
STRATA_GGML_PDEPAUTO(default)/ON/OFFAUTOdisables the__BMI2__for cpu family 17h or 18h (the naughty ones from AMD), leaves it untouched for the restWon't fix it on windows or pre-compiled sources but it will make zen2 (and earlier) compilations go brrrr.
--
Strata version: measured on v0.1.45 (
477ac13c).On v0.2.10 only the DeepSeek release build has BMI2 off (
6953d896); native builds and the other engines' release builds still use pdep.6953d896measured the same on an EPYC 7452 (IQ1_M 1.8 -> 32 GB/s). #3472 covers native builds for every engine.@github-actions[bot] commented on GitHub (Nov 5, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
strata --version).Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 5, 2026):
Thanks, this follows the format now.