forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-cpp/highway: Fix detection of AVX512 for IceLake Client CPUs
Closes: https://bugs.gentoo.org/836373 Closes: gentoo#24819 Signed-off-by: Paolo Pedroni <[email protected]> Signed-off-by: Matt Turner <[email protected]>
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
dev-cpp/highway/files/highway-0.16.0-fix-AVX512-detection-on-IceLakeClient.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
https://github.com/google/highway/commit/daf441c78191b3433410498d27a5bfdfdf93a142 | ||
|
||
diff --git a/hwy/targets.cc b/hwy/targets.cc | ||
index 2a0ab4ef..7e7e2d79 100644 | ||
--- a/hwy/targets.cc | ||
+++ b/hwy/targets.cc | ||
@@ -328,8 +328,8 @@ uint32_t SupportedTargets() { | ||
if (!IsBitSet(xcr0, 2)) { | ||
bits &= ~uint32_t(HWY_AVX2 | HWY_AVX3 | HWY_AVX3_DL); | ||
} | ||
- // ZMM + opmask | ||
- if ((xcr0 & 0x70) != 0x70) { | ||
+ // opmask, ZMM lo/hi | ||
+ if (!IsBitSet(xcr0, 5) || !IsBitSet(xcr0, 6) || !IsBitSet(xcr0, 7)) { | ||
bits &= ~uint32_t(HWY_AVX3 | HWY_AVX3_DL); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters