Closed ashbob999 closed 3 months ago
Yes, @ashbob999! You may be right. If you have a patch, will be happy to test on my end as well 🤗
I haven't made a patch yet, but it should be simply enough to do.
Just replace the 3 info1
s with info7
s.
I can create a PR with the patch, and test it myself, but it won't be till the weekend.
Yes, that fixes the issue! It would be great if we had similar CPU-capability checks for Arm.
:tada: This issue has been resolved in version 3.8.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
The
sz_capabilities
function seems to return incorrect values for certain AVX512 instruction sets.lscpu gives:
But the python
stringzilla.__capabilities__
gives:If I understand
cpuid
correctly,info1
refers to callingcpuid
witheax==1
(From https://en.wikipedia.org/wiki/CPUID). Then the following code insz_capabilites
is incorrect. https://github.com/ashvardanian/StringZilla/blob/1a4b05d8d6b7bc617b8e857d36b5dc1869685a7d/c/lib.c#L78-L83So the
info1
s should instead beinfo7
s. As currently:supports_avx512vbmi
: Actually representspclmulqdq
(Supported).supports_avx512vbmi2
: Actually representssmx
(Not Supported).supports_gfni
: Actually representstm2
(Supported).