mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
refactor: adjust code for newer aot header
Related-To: NEO-11466 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dd55225041
commit
6de68d3bfd
1
third_party/aot_config_headers/.version
vendored
Normal file
1
third_party/aot_config_headers/.version
vendored
Normal file
@@ -0,0 +1 @@
|
||||
git_revision: 8b7b40b8e55db14765852563adc3ee0ab0e33e32
|
||||
248
third_party/aot_config_headers/platforms.h
vendored
248
third_party/aot_config_headers/platforms.h
vendored
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2023 Intel Corporation
|
||||
* Copyright (C) 2021-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -29,11 +29,11 @@ enum PRODUCT_CONFIG : uint32_t {
|
||||
EHL = 0x02c08000,
|
||||
TGL = 0x03000000,
|
||||
RKL = 0x03004000,
|
||||
RPL_S = 0x03008000,
|
||||
ADL_S = 0x03008000,
|
||||
ADL_P = 0x0300c000,
|
||||
ADL_N = 0x03010000,
|
||||
DG1 = 0x03028000,
|
||||
XEHP_SDV = 0x030c8004,
|
||||
DG2_G10_A0 = 0x030dc000,
|
||||
DG2_G10_A1 = 0x030dc001,
|
||||
DG2_G10_B0 = 0x030dc004,
|
||||
@@ -49,13 +49,19 @@ enum PRODUCT_CONFIG : uint32_t {
|
||||
PVC_XT_B1 = 0x030f0006,
|
||||
PVC_XT_C0 = 0x030f0007,
|
||||
PVC_XT_C0_VG = 0x030f4007,
|
||||
MTL_M_A0 = 0x03118000,
|
||||
MTL_M_B0 = 0x03118004,
|
||||
MTL_P_A0 = 0x0311c000,
|
||||
MTL_P_B0 = 0x0311c004,
|
||||
XE_LPGPLUS_A0 = 0x03128000,
|
||||
XE_LPGPLUS_B0 = 0x03128004,
|
||||
CONFIG_MAX_PLATFORM,
|
||||
MTL_U_A0 = 0x03118000,
|
||||
MTL_U_B0 = 0x03118004,
|
||||
MTL_H_A0 = 0x0311c000,
|
||||
MTL_H_B0 = 0x0311c004,
|
||||
ARL_H_A0 = 0x03128000,
|
||||
ARL_H_B0 = 0x03128004,
|
||||
BMG_G21_A0 = 0x05004000,
|
||||
BMG_G21_A1 = 0x05004001,
|
||||
BMG_G21_B0 = 0x05004004,
|
||||
LNL_A0 = 0x05010000,
|
||||
LNL_A1 = 0x05010001,
|
||||
LNL_B0 = 0x05010004,
|
||||
CONFIG_MAX_PLATFORM
|
||||
};
|
||||
|
||||
enum RELEASE : uint32_t {
|
||||
@@ -63,12 +69,17 @@ enum RELEASE : uint32_t {
|
||||
GEN8_RELEASE,
|
||||
GEN9_RELEASE,
|
||||
GEN11_RELEASE,
|
||||
GEN12LP_RELEASE,
|
||||
XE_LP_RELEASE,
|
||||
GEN12LP_RELEASE = XE_LP_RELEASE,
|
||||
XE_HP_RELEASE,
|
||||
XE_HPG_RELEASE,
|
||||
XE_HPC_RELEASE,
|
||||
XE_HPC_VG_RELEASE,
|
||||
XE_LPG_RELEASE,
|
||||
XE_LPGPLUS_RELEASE,
|
||||
RELEASE_MAX,
|
||||
XE2_HPG_RELEASE,
|
||||
XE2_LPG_RELEASE,
|
||||
RELEASE_MAX
|
||||
};
|
||||
|
||||
enum FAMILY : uint32_t {
|
||||
@@ -76,130 +87,199 @@ enum FAMILY : uint32_t {
|
||||
GEN8_FAMILY,
|
||||
GEN9_FAMILY,
|
||||
GEN11_FAMILY,
|
||||
GEN12LP_FAMILY,
|
||||
XE_FAMILY,
|
||||
FAMILY_MAX,
|
||||
XE2_FAMILY,
|
||||
FAMILY_MAX
|
||||
};
|
||||
|
||||
inline const std::map<std::string, FAMILY> familyAcronyms = {
|
||||
#ifdef SUPPORT_GEN8
|
||||
#ifdef SUPPORT_AOT_GEN8
|
||||
{"gen8", GEN8_FAMILY},
|
||||
#endif
|
||||
#ifdef SUPPORT_GEN9
|
||||
#ifdef SUPPORT_AOT_GEN9
|
||||
{"gen9", GEN9_FAMILY},
|
||||
#endif
|
||||
#ifdef SUPPORT_GEN11
|
||||
#ifdef SUPPORT_AOT_GEN11
|
||||
{"gen11", GEN11_FAMILY},
|
||||
#endif
|
||||
#ifdef SUPPORT_GEN12LP
|
||||
{"gen12lp", GEN12LP_FAMILY},
|
||||
#endif
|
||||
#if defined(SUPPORT_XE_HPC_CORE) || defined(SUPPORT_XE_HPG_CORE)
|
||||
#ifdef SUPPORT_AOT_XE
|
||||
{"xe", XE_FAMILY},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_XE2
|
||||
{"xe2", XE2_FAMILY},
|
||||
#endif
|
||||
};
|
||||
|
||||
inline const std::map<std::string, RELEASE> releaseAcronyms = {
|
||||
#ifdef SUPPORT_GEN8
|
||||
#ifdef SUPPORT_AOT_GEN8
|
||||
{"gen8", GEN8_RELEASE},
|
||||
#endif
|
||||
#ifdef SUPPORT_GEN9
|
||||
#ifdef SUPPORT_AOT_GEN9
|
||||
{"gen9", GEN9_RELEASE},
|
||||
#endif
|
||||
#ifdef SUPPORT_GEN11
|
||||
#ifdef SUPPORT_AOT_GEN11
|
||||
{"gen11", GEN11_RELEASE},
|
||||
#endif
|
||||
#ifdef SUPPORT_GEN12LP
|
||||
{"gen12lp", GEN12LP_RELEASE},
|
||||
#ifdef SUPPORT_AOT_XE_LP
|
||||
{"xe-lp", XE_LP_RELEASE},
|
||||
{"gen12lp", XE_LP_RELEASE},
|
||||
#endif
|
||||
#if defined(SUPPORT_XE_HPG_CORE) && defined(SUPPORT_DG2)
|
||||
#ifdef SUPPORT_AOT_XE_HP
|
||||
{"xe-hp", XE_HP_RELEASE},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_XE_HPG
|
||||
{"xe-hpg", XE_HPG_RELEASE},
|
||||
#endif
|
||||
#ifdef SUPPORT_XE_HPC_CORE
|
||||
#ifdef SUPPORT_AOT_XE_HPC
|
||||
{"xe-hpc", XE_HPC_RELEASE},
|
||||
#endif
|
||||
#if defined(SUPPORT_XE_HPG_CORE) && defined(SUPPORT_MTL)
|
||||
#ifdef SUPPORT_AOT_XE_HPC_VG
|
||||
{"xe-hpc-vg", XE_HPC_VG_RELEASE},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_XE_LPG
|
||||
{"xe-lpg", XE_LPG_RELEASE},
|
||||
#endif
|
||||
#if defined(SUPPORT_XE_HPG_CORE) && defined(SUPPORT_ARL)
|
||||
#ifdef SUPPORT_AOT_XE_LPGPLUS
|
||||
{"xe-lpgplus", XE_LPGPLUS_RELEASE},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_XE2_HPG
|
||||
{"xe2-hpg", XE2_HPG_RELEASE},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_XE2_LPG
|
||||
{"xe2-lpg", XE2_LPG_RELEASE},
|
||||
#endif
|
||||
};
|
||||
|
||||
inline const std::map<std::string, AOT::PRODUCT_CONFIG> deviceAcronyms = {
|
||||
#ifdef SUPPORT_BDW
|
||||
{"bdw", BDW},
|
||||
inline const std::map<std::string, PRODUCT_CONFIG> deviceAcronyms = {
|
||||
#ifdef SUPPORT_AOT_BDW
|
||||
{"bdw", BDW},
|
||||
#endif
|
||||
#ifdef SUPPORT_SKL
|
||||
{"skl", SKL},
|
||||
#ifdef SUPPORT_AOT_SKL
|
||||
{"skl", SKL},
|
||||
#endif
|
||||
#ifdef SUPPORT_KBL
|
||||
{"kbl", KBL},
|
||||
{"aml", AML},
|
||||
#ifdef SUPPORT_AOT_KBL
|
||||
{"kbl", KBL},
|
||||
#endif
|
||||
#ifdef SUPPORT_CFL
|
||||
{"cfl", CFL},
|
||||
{"cml", CML},
|
||||
{"whl", WHL},
|
||||
#ifdef SUPPORT_AOT_CFL
|
||||
{"cfl", CFL},
|
||||
#endif
|
||||
#ifdef SUPPORT_BXT
|
||||
{"apl", APL},
|
||||
{"bxt", APL},
|
||||
#ifdef SUPPORT_AOT_BXT
|
||||
{"apl", APL},
|
||||
{"bxt", APL},
|
||||
#endif
|
||||
#ifdef SUPPORT_GLK
|
||||
{"glk", GLK},
|
||||
#ifdef SUPPORT_AOT_GLK
|
||||
{"glk", GLK},
|
||||
#endif
|
||||
#ifdef SUPPORT_ICLLP
|
||||
{"icllp", ICL},
|
||||
#ifdef SUPPORT_AOT_WHL
|
||||
{"whl", WHL},
|
||||
#endif
|
||||
#ifdef SUPPORT_LKF
|
||||
{"lkf", LKF},
|
||||
#ifdef SUPPORT_AOT_AML
|
||||
{"aml", AML},
|
||||
#endif
|
||||
#ifdef SUPPORT_EHL
|
||||
{"ehl", EHL},
|
||||
{"jsl", EHL},
|
||||
#ifdef SUPPORT_AOT_CML
|
||||
{"cml", CML},
|
||||
#endif
|
||||
#ifdef SUPPORT_TGLLP
|
||||
{"tgllp", TGL},
|
||||
#ifdef SUPPORT_AOT_ICLLP
|
||||
{"icllp", ICL},
|
||||
{"icl", ICL},
|
||||
#endif
|
||||
#ifdef SUPPORT_RKL
|
||||
{"rkl", RKL},
|
||||
#ifdef SUPPORT_AOT_LKF1
|
||||
{"lkf", LKF},
|
||||
#endif
|
||||
#ifdef SUPPORT_ADLS
|
||||
{"adl-s", ADL_S},
|
||||
#ifdef SUPPORT_AOT_JSL
|
||||
{"ehl", EHL},
|
||||
{"jsl", EHL},
|
||||
#endif
|
||||
#ifdef SUPPORT_ADLP
|
||||
{"adl-p", ADL_P},
|
||||
#ifdef SUPPORT_AOT_TGLLP
|
||||
{"tgllp", TGL},
|
||||
{"tgl", TGL},
|
||||
#endif
|
||||
#ifdef SUPPORT_ADLN
|
||||
{"adl-n", ADL_N},
|
||||
#ifdef SUPPORT_AOT_RKLC
|
||||
{"rkl", RKL},
|
||||
#endif
|
||||
#ifdef SUPPORT_DG1
|
||||
{"dg1", DG1},
|
||||
#ifdef SUPPORT_AOT_ADLS
|
||||
{"adl-s", ADL_S},
|
||||
{"rpl-s", ADL_S},
|
||||
#endif
|
||||
#ifdef SUPPORT_DG2
|
||||
{"acm-g10", DG2_G10_C0},
|
||||
{"dg2-g10", DG2_G10_C0},
|
||||
{"ats-m150", DG2_G10_C0},
|
||||
{"acm-g11", DG2_G11_B1},
|
||||
{"dg2-g11", DG2_G11_B1},
|
||||
{"ats-m75", DG2_G11_B1},
|
||||
{"acm-g12", DG2_G12_A0},
|
||||
{"dg2-g12", DG2_G12_A0},
|
||||
#ifdef SUPPORT_AOT_ADL
|
||||
{"adl-p", ADL_P},
|
||||
{"rpl-p", ADL_P},
|
||||
{"adl-n", ADL_N},
|
||||
#endif
|
||||
#ifdef SUPPORT_PVC
|
||||
{"pvc-sdv", PVC_XL_A0P},
|
||||
{"pvc", PVC_XT_C0},
|
||||
#ifdef SUPPORT_AOT_DG1
|
||||
{"dg1", DG1},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_DG2
|
||||
{"acm-g10", DG2_G10_C0},
|
||||
{"dg2-g10", DG2_G10_C0},
|
||||
{"ats-m150", DG2_G10_C0},
|
||||
{"acm-g11", DG2_G11_B1},
|
||||
{"dg2-g11", DG2_G11_B1},
|
||||
{"ats-m75", DG2_G11_B1},
|
||||
{"acm-g12", DG2_G12_A0},
|
||||
{"dg2-g12", DG2_G12_A0},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_PVC
|
||||
{"pvc-sdv", PVC_XL_A0P},
|
||||
{"pvc", PVC_XT_C0},
|
||||
{"pvc-vg", PVC_XT_C0_VG},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_MTL
|
||||
{"mtl-u", MTL_U_B0},
|
||||
{"arl-u", MTL_U_B0},
|
||||
{"arl-s", MTL_U_B0},
|
||||
{"mtl-h", MTL_H_B0},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_ARL
|
||||
{"arl-h", ARL_H_B0},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_BMG
|
||||
{"bmg-g21", BMG_G21_B0},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_LNL
|
||||
{"lnl-m", LNL_B0},
|
||||
#endif
|
||||
};
|
||||
|
||||
inline const std::map<std::string, PRODUCT_CONFIG> rtlIdAcronyms = {
|
||||
#ifdef SUPPORT_AOT_DG2
|
||||
{"dg2-g10-a0", DG2_G10_A0},
|
||||
{"dg2-g10-a1", DG2_G10_A1},
|
||||
{"dg2-g10-b0", DG2_G10_B0},
|
||||
{"dg2-g10-c0", DG2_G10_C0},
|
||||
{"dg2-g11-a0", DG2_G11_A0},
|
||||
{"dg2-g11-b0", DG2_G11_B0},
|
||||
{"dg2-g11-b1", DG2_G11_B1},
|
||||
{"dg2-g12-a0", DG2_G12_A0},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_PVC
|
||||
{"pvc-xl-a0", PVC_XL_A0},
|
||||
{"pvc-xl-a0p", PVC_XL_A0P},
|
||||
{"pvc-xt-a0", PVC_XT_A0},
|
||||
{"pvc-xt-b0", PVC_XT_B0},
|
||||
{"pvc-xt-b1", PVC_XT_B1},
|
||||
{"pvc-xt-c0", PVC_XT_C0},
|
||||
{"pvc-xt-c0-vg", PVC_XT_C0_VG},
|
||||
#endif
|
||||
#ifdef SUPPORT_MTL
|
||||
{"mtl-s", MTL_M_B0},
|
||||
{"mtl-m", MTL_M_B0},
|
||||
{"mtl-p", MTL_P_B0},
|
||||
#ifdef SUPPORT_AOT_MTL
|
||||
{"mtl-u-a0", MTL_U_A0},
|
||||
{"mtl-u-b0", MTL_U_B0},
|
||||
{"mtl-h-a0", MTL_H_A0},
|
||||
{"mtl-h-b0", MTL_H_B0},
|
||||
#endif
|
||||
#ifdef SUPPORT_ARL
|
||||
{"xe-lpgplus-a0", XE_LPGPLUS_A0},
|
||||
{"xe-lpgplus-b0", XE_LPGPLUS_B0},
|
||||
#ifdef SUPPORT_AOT_ARL
|
||||
{"arl-h-a0", ARL_H_A0},
|
||||
{"arl-h-b0", ARL_H_B0},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_BMG
|
||||
{"bmg-g21-a0", BMG_G21_A0},
|
||||
{"bmg-g21-a1", BMG_G21_A1},
|
||||
{"bmg-g21-b0", BMG_G21_B0},
|
||||
#endif
|
||||
#ifdef SUPPORT_AOT_LNL
|
||||
{"lnl-a0", LNL_A0},
|
||||
{"lnl-a1", LNL_A1},
|
||||
{"lnl-b0", LNL_B0},
|
||||
#endif
|
||||
};
|
||||
} // namespace AOT
|
||||
|
||||
Reference in New Issue
Block a user