mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #159] Incorrect checking of AVX2 feature in CPU: #85
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#85
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 @uvhat on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/159
Checking processor features by IsProcessorFeaturePresent is incorrect because host system could masking this features if Hyper-V enabled
if i force avx2 = True here - everything working fine on my setup
Checking should be changed to direct call of CPUID and parsing register flags
@Niko1221 commented on GitHub (Sep 29, 2026):
Thanks @uvhat, confirmed: setup only asks Windows (
IsProcessorFeaturePresent), and Windows can report no AVX2 on CPUs that have it. We'll fall back to CPUID (the way setup already checks AVX-512) when Windows says no. Fix in the next release.@Niko1221 commented on GitHub (Sep 29, 2026):
Fixed in 0.1.27: when Windows says there is no AVX2, setup now asks the CPU itself (CPUID leaf 7, plus the OS check that the YMM registers are saved), so a Ryzen 9 3950X passes. Thanks @uvhat! Please reopen if setup still refuses.