Skip to content

Commit 1ce1fb0

Browse files
authored
Add alder lake to processor list (#44696)
1 parent bc0fae2 commit 1ce1fb0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/features_x86.h

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ JL_FEATURE_DEF(clzero, 32 * 8 + 0, 0)
108108
JL_FEATURE_DEF(wbnoinvd, 32 * 8 + 9, 0)
109109

110110
// EAX=7,ECX=1: EAX
111+
JL_FEATURE_DEF(avxvnni, 32 * 9 + 4, 120000)
111112
JL_FEATURE_DEF(avx512bf16, 32 * 9 + 5, 0)
112113

113114
// EAX=0x14,ECX=0: EBX

src/processor_x86.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ enum class CPU : uint32_t {
7171
intel_corei7_icelake_client,
7272
intel_corei7_icelake_server,
7373
intel_corei7_tigerlake,
74+
intel_corei7_alderlake,
7475
intel_corei7_sapphirerapids,
7576
intel_knights_landing,
7677
intel_knights_mill,
@@ -136,6 +137,7 @@ static constexpr FeatureDep deps[] = {
136137
{vaes, aes},
137138
{vpclmulqdq, avx},
138139
{vpclmulqdq, pclmul},
140+
{avxvnni, avx2},
139141
{avx512f, avx2},
140142
{avx512dq, avx512f},
141143
{avx512ifma, avx512f},
@@ -202,6 +204,8 @@ constexpr auto icelake = cannonlake | get_feature_masks(avx512bitalg, vaes, avx5
202204
constexpr auto icelake_server = icelake | get_feature_masks(pconfig, wbnoinvd);
203205
constexpr auto tigerlake = icelake | get_feature_masks(avx512vp2intersect, movdiri,
204206
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);
205209
constexpr auto sapphirerapids = icelake_server |
206210
get_feature_masks(amx_tile, amx_int8, amx_bf16, avx512bf16, serialize, cldemote, waitpkg,
207211
ptwrite, tsxldtrk, enqcmd, shstk, avx512vp2intersect, movdiri, movdir64b);
@@ -255,6 +259,8 @@ static constexpr CPUSpec<CPU, feature_sz> cpus[] = {
255259
Feature::icelake_server},
256260
{"tigerlake", CPU::intel_corei7_tigerlake, CPU::intel_corei7_icelake_client, 100000,
257261
Feature::tigerlake},
262+
{"alderlake", CPU::intel_corei7_alderlake, CPU::intel_corei7_skylake, 120000,
263+
Feature::alderlake},
258264
{"sapphirerapids", CPU::intel_corei7_sapphirerapids, CPU::intel_corei7_icelake_server, 120000,
259265
Feature::sapphirerapids},
260266

@@ -411,6 +417,10 @@ static CPU get_intel_processor_name(uint32_t family, uint32_t model, uint32_t br
411417
case 0x8c:
412418
case 0x8d:
413419
return CPU::intel_corei7_tigerlake;
420+
//Alder Lake
421+
case 0x97:
422+
case 0x9a:
423+
return CPU::intel_corei7_alderlake;
414424

415425
// Sapphire Rapids
416426
case 0x8f:

0 commit comments

Comments
 (0)