Skip to content

Commit

Permalink
lib/systems/architectures: add sapphirerapids/emeraldrapids
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and alyssais committed Oct 8, 2024
1 parent d74f0ec commit 8885a1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/systems/architectures.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ rec {
cooperlake = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" "avx2" "avx512" "fma" ];
tigerlake = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" "avx2" "avx512" "fma" ];
alderlake = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" "avx2" "fma" ];
sapphirerapids = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" "avx2" "avx512" "fma" ];
emeraldrapids = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" "avx2" "avx512" "fma" ];
# x86_64 AMD
btver1 = [ "sse3" "ssse3" "sse4_1" "sse4_2" ];
btver2 = [ "sse3" "ssse3" "sse4_1" "sse4_2" "aes" "avx" ];
Expand Down Expand Up @@ -73,6 +75,8 @@ rec {
cascadelake = [ "cannonlake" ] ++ inferiors.cannonlake;
cooperlake = [ "cascadelake" ] ++ inferiors.cascadelake;
tigerlake = [ "icelake-server" ] ++ inferiors.icelake-server;
sapphirerapids = [ "tigerlake" ] ++ inferiors.tigerlake;
emeraldrapids = [ "sapphirerapids" ] ++ inferiors.sapphirerapids;

# CX16 does not exist on alderlake, while it does on nearly all other intel CPUs
alderlake = [ ];
Expand Down
4 changes: 4 additions & 0 deletions pkgs/build-support/cc-wrapper/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ let
tigerlake = versionAtLeast ccVersion "10.0";
knm = versionAtLeast ccVersion "8.0";
alderlake = versionAtLeast ccVersion "12.0";
sapphirerapids = versionAtLeast ccVersion "11.0";
emeraldrapids = versionAtLeast ccVersion "13.0";

# AMD
znver1 = true;
Expand All @@ -181,6 +183,8 @@ let
icelake-server = versionAtLeast ccVersion "7.0";
knm = versionAtLeast ccVersion "7.0";
alderlake = versionAtLeast ccVersion "16.0";
sapphirerapids = versionAtLeast ccVersion "12.0";
emeraldrapids = versionAtLeast ccVersion "16.0";

# AMD
znver1 = versionAtLeast ccVersion "4.0";
Expand Down

0 comments on commit 8885a1e

Please sign in to comment.