[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#64188] [PATCH v2 3/7] guix: cpu: Rewrite fallback for x86_64 cpu->g
From: |
Efraim Flashner |
Subject: |
[bug#64188] [PATCH v2 3/7] guix: cpu: Rewrite fallback for x86_64 cpu->gcc-architecture. |
Date: |
Mon, 26 Jun 2023 15:38:39 +0300 |
* guix/cpu.scm (cpu->gcc-architecture): Adjust the fallback case to use
cpu->micro-architecture-level.
---
guix/cpu.scm | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/guix/cpu.scm b/guix/cpu.scm
index 3fc12327ed..1a75b8ac62 100644
--- a/guix/cpu.scm
+++ b/guix/cpu.scm
@@ -209,21 +209,7 @@ (define (cpu->gcc-architecture cpu)
(if (and (= 7 (cpu-family cpu))
(= #x3b (cpu-model cpu)))
"lujiazui"
- (if-flags ("avx512" => "knl")
- ("adx" => "broadwell")
- ("avx2" => "haswell")
- ;; TODO: tigerlake, cooperlake, etc.
- ("avx" => "sandybridge")
- ("sse4_2" "gfni" => "tremont")
- ("sse4_2" "sgx" => "goldmont-plus")
- ("sse4_2" "xsave" => "goldmont")
- ("sse4_2" "movbe" => "silvermont")
- ("sse4_2" => "nehalem")
- ("ssse3" "movbe" => "bonnell")
- ("ssse3" "sse3" "longmode" => "nocona")
- ("ssse3" "sse3" "lm" => "nocona")
- ("ssse3" "sse3" => "prescott")
- ("ssse3" => "core2"))))
+ (cpu->micro-architecture-level cpu))
;; TODO: Recognize CENTAUR/CYRIX/NSC?
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
- [bug#64188] [PATCH 8/8] transformations: Allow autotuning for go packages., (continued)
- [bug#64188] [PATCH 8/8] transformations: Allow autotuning for go packages., Efraim Flashner, 2023/06/20
- [bug#64188] [PATCH 0/8] More package tuning, Ludovic Courtès, 2023/06/25
- [bug#64188] [PATCH v2 0/7] More package tuning, Efraim Flashner, 2023/06/26
- [bug#64188] [PATCH v2 6/7] gnu: go: Add CPU tuning targets., Efraim Flashner, 2023/06/26
- [bug#64188] [PATCH v2 1/7] gnu: %gcc-11-x86_64-micro-architectures: Add psabi entries., Efraim Flashner, 2023/06/26
- [bug#64188] [PATCH v2 4/7] guix: cpu: Refactor cpu->gcc-architecture., Efraim Flashner, 2023/06/26
- [bug#64188] [PATCH v2 2/7] guix: cpu: Add generalized CPU matching., Efraim Flashner, 2023/06/26
- [bug#64188] [PATCH v2 7/7] transformations: Allow tuning go packages., Efraim Flashner, 2023/06/26
- [bug#64188] [PATCH v2 5/7] guix: cpu: Add gcc-architecture->micro-architecture-level mapping., Efraim Flashner, 2023/06/26
- [bug#64188] [PATCH v2 3/7] guix: cpu: Rewrite fallback for x86_64 cpu->gcc-architecture.,
Efraim Flashner <=