[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/20: guix: cpu: Autodetect the x86-64-v4 microarchitecture.
From: |
guix-commits |
Subject: |
06/20: guix: cpu: Autodetect the x86-64-v4 microarchitecture. |
Date: |
Tue, 5 Mar 2024 03:20:36 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 5dce7964ef7c368d421c5a0c8738be06ed57ea0e
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 4 13:59:49 2024 +0200
guix: cpu: Autodetect the x86-64-v4 microarchitecture.
* guix/cpu.scm (gcc-architecture->micro-architecture-level): Sort
gcc-architectures which have AVX512F support into x86-64-v4.
Change-Id: I8af0ceb692eefec7433e1fd5149379244da799c4
---
guix/cpu.scm | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/guix/cpu.scm b/guix/cpu.scm
index c5837ade7f..6891d9f266 100644
--- a/guix/cpu.scm
+++ b/guix/cpu.scm
@@ -296,14 +296,17 @@ correspond roughly to CPU, a record as returned by
'current-cpu'."
"Return a matching psABI micro-architecture, allowing optimizations for
x86_64
CPUs for compilers which don't allow for more focused optimizing."
;; Matching gcc-architectures isn't an easy task, with the rule-of-thumb
being
- ;; 'Haswell and higher' qualify for x86_64-v3.
+ ;; AVX512F+ for x86_64-v4, AVX+ for x86_64-v3.
;;
https://gitlab.com/x86-psABIs/x86-64-ABI/-/blob/master/x86-64-ABI/low-level-sys-info.tex
(match gcc-architecture
((or "graniterapids-d" "graniterapids" "tigerlake" "sapphirerapids"
- "cooperlake" "icelake-server" "icelake-client" "cannonlake" "knm"
"knl"
- "skylake-avx512" "pantherlake" "clearwaterforest" "arrowlake-s"
- "sierraforest" "alderlake" "skylake" "broadwell" "haswell"
- "znver4" "znver3" "znver2" "znver1" "bdver4")
+ "cooperlake" "icelake-server" "icelake-client" "cannonlake" "knm"
+ "knl" "skylake-avx512"
+ "znver4")
+ "x86_64-v4")
+ ((or "pantherlake" "clearwaterforest" "arrowlake-s" "sierraforest"
+ "alderlake" "skylake" "broadwell" "haswell"
+ "znver3" "znver2" "znver1" "bdver4")
"x86_64-v3")
((or "sandybridge" "tremont" "goldmont-plus" "goldmont" "silvermont"
"nehalem" "bonnell" "core2"
- branch master updated (3da49b1472 -> b7f0aad907), guix-commits, 2024/03/05
- 02/20: gnu: libtommath: Update to 1.2.1., guix-commits, 2024/03/05
- 05/20: guix: cpu: Update x86_64 CPUs., guix-commits, 2024/03/05
- 07/20: guix: cpu: Update aarch64 CPUs., guix-commits, 2024/03/05
- 09/20: gnu: Add rust-h3-0.0.2., guix-commits, 2024/03/05
- 12/20: gnu: Add rust-async-broadcast-0.6., guix-commits, 2024/03/05
- 13/20: gnu: Add rust-hickory-proto-0.24., guix-commits, 2024/03/05
- 06/20: guix: cpu: Autodetect the x86-64-v4 microarchitecture.,
guix-commits <=
- 03/20: gnu: font-gnu-unifont: Update to 15.1.05., guix-commits, 2024/03/05
- 08/20: gnu: git-annex: Update to 10.20240227., guix-commits, 2024/03/05
- 20/20: gnu: Add emacs-lsp-booster., guix-commits, 2024/03/05
- 18/20: gnu: Add aardvark-dns., guix-commits, 2024/03/05
- 17/20: gnu: Add rust-hickory-server-0.24., guix-commits, 2024/03/05
- 19/20: gnu: Add rust-clap-verbosity-flag-2., guix-commits, 2024/03/05
- 01/20: gnu: Remove libtommath-1.1., guix-commits, 2024/03/05
- 15/20: gnu: Add rust-hickory-recursor-0.24., guix-commits, 2024/03/05
- 14/20: gnu: Add rust-hickory-resolver-0.24., guix-commits, 2024/03/05
- 11/20: gnu: Add rust-event-listener-strategy-0.1., guix-commits, 2024/03/05