File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -1527,6 +1527,19 @@ int get_cpuname(void){
15271527 break ;
15281528 case 10 : //family 6 exmodel 10
15291529 switch (model ) {
1530+ case 13 : // Granite Rapids
1531+ if (support_amx_bf16 ())
1532+ return CPUTYPE_SAPPHIRERAPIDS ;
1533+ if (support_avx512_bf16 ())
1534+ return CPUTYPE_COOPERLAKE ;
1535+ if (support_avx512 ())
1536+ return CPUTYPE_SKYLAKEX ;
1537+ if (support_avx2 ())
1538+ return CPUTYPE_HASWELL ;
1539+ if (support_avx ())
1540+ return CPUTYPE_SANDYBRIDGE ;
1541+ else
1542+ return CPUTYPE_NEHALEM ;
15301543 case 5 : // Comet Lake H and S
15311544 case 6 : // Comet Lake U
15321545 case 10 : // Meteor Lake
@@ -2352,8 +2365,22 @@ int get_coretype(void){
23522365
23532366 case 10 :
23542367 switch (model ) {
2368+ case 13 : // Granite Rapids
2369+ if (support_amx_bf16 ())
2370+ return CORE_SAPPHIRERAPIDS ;
2371+ if (support_avx512_bf16 ())
2372+ return CORE_COOPERLAKE ;
2373+ if (support_avx512 ())
2374+ return CORE_SKYLAKEX ;
2375+ if (support_avx2 ())
2376+ return CORE_HASWELL ;
2377+ if (support_avx ())
2378+ return CORE_SANDYBRIDGE ;
2379+ else
2380+ return CORE_NEHALEM ;
23552381 case 5 : // Comet Lake H and S
23562382 case 6 : // Comet Lake U
2383+ case 10 : // Meteor Lake
23572384 if (support_avx ())
23582385 #ifndef NO_AVX2
23592386 return CORE_HASWELL ;
@@ -2362,6 +2389,7 @@ int get_coretype(void){
23622389 #endif
23632390 else
23642391 return CORE_NEHALEM ;
2392+ case 0 : // Meteor Lake
23652393 case 7 :// Rocket Lake
23662394#ifndef NO_AVX512
23672395 if (support_avx512 ())
You can’t perform that action at this time.
0 commit comments