@@ -71,6 +71,7 @@ enum class CPU : uint32_t {
71
71
intel_corei7_icelake_client,
72
72
intel_corei7_icelake_server,
73
73
intel_corei7_tigerlake,
74
+ intel_corei7_alderlake,
74
75
intel_corei7_sapphirerapids,
75
76
intel_knights_landing,
76
77
intel_knights_mill,
@@ -136,6 +137,7 @@ static constexpr FeatureDep deps[] = {
136
137
{vaes, aes},
137
138
{vpclmulqdq, avx},
138
139
{vpclmulqdq, pclmul},
140
+ {avxvnni, avx2},
139
141
{avx512f, avx2},
140
142
{avx512dq, avx512f},
141
143
{avx512ifma, avx512f},
@@ -202,6 +204,8 @@ constexpr auto icelake = cannonlake | get_feature_masks(avx512bitalg, vaes, avx5
202
204
constexpr auto icelake_server = icelake | get_feature_masks(pconfig, wbnoinvd);
203
205
constexpr auto tigerlake = icelake | get_feature_masks(avx512vp2intersect, movdiri,
204
206
movdir64b, shstk);
207
+ constexpr auto alderlake = skylake | get_feature_masks(clwb, sha, waitpkg, shstk, gfni, vaes, vpclmulqdq, pconfig,
208
+ rdpid, movdiri, pku, movdir64b, serialize, ptwrite, avxvnni);
205
209
constexpr auto sapphirerapids = icelake_server |
206
210
get_feature_masks (amx_tile, amx_int8, amx_bf16, avx512bf16, serialize, cldemote, waitpkg,
207
211
ptwrite, tsxldtrk, enqcmd, shstk, avx512vp2intersect, movdiri, movdir64b);
@@ -255,6 +259,8 @@ static constexpr CPUSpec<CPU, feature_sz> cpus[] = {
255
259
Feature::icelake_server},
256
260
{" tigerlake" , CPU::intel_corei7_tigerlake, CPU::intel_corei7_icelake_client, 100000 ,
257
261
Feature::tigerlake},
262
+ {" alderlake" , CPU::intel_corei7_alderlake, CPU::intel_corei7_skylake, 120000 ,
263
+ Feature::alderlake},
258
264
{" sapphirerapids" , CPU::intel_corei7_sapphirerapids, CPU::intel_corei7_icelake_server, 120000 ,
259
265
Feature::sapphirerapids},
260
266
@@ -411,6 +417,10 @@ static CPU get_intel_processor_name(uint32_t family, uint32_t model, uint32_t br
411
417
case 0x8c :
412
418
case 0x8d :
413
419
return CPU::intel_corei7_tigerlake;
420
+ // Alder Lake
421
+ case 0x97 :
422
+ case 0x9a :
423
+ return CPU::intel_corei7_alderlake;
414
424
415
425
// Sapphire Rapids
416
426
case 0x8f :
0 commit comments