guix: cpu: Add detection for znver5.

* guix/cpu.scm (cpu->gcc-architecture): Add detection for znver5.
(gcc-architecture->micro-architecture-level): Add entry for znver5.

Change-Id: If0ff9540517cb9ac869afabf413c9993166d78a5
This commit is contained in:
Efraim Flashner 2024-09-30 11:35:53 +03:00
parent 1d4a44a29b
commit 2545afa64a
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -167,7 +167,8 @@ (define (cpu->gcc-architecture cpu)
("lm" "sse3" => "k8-sse3")
("longmode" => "k8")
("lm" => "k8")))
(if-flags ("avx512f" => "znver4")
(if-flags ("avx512vp2intersect" => "znver5")
("avx512f" => "znver4")
("vaes" => "znver3")
("clwb" => "znver2")
("clzero" => "znver1")
@ -312,7 +313,7 @@ (define (gcc-architecture->micro-architecture-level gcc-architecture)
((or "graniterapids-d" "graniterapids" "tigerlake" "sapphirerapids"
"cooperlake" "icelake-server" "icelake-client" "cannonlake" "knm"
"knl" "skylake-avx512"
"znver4")
"znver5" "znver4")
"x86-64-v4")
((or "pantherlake" "clearwaterforest" "arrowlake-s" "sierraforest"
"alderlake" "skylake" "broadwell" "haswell"