Files
compute-runtime/shared/source/helpers/enable_product.inl
Daria Hinz de74becdb8 Base hwInfo values setup for AOT
In most cases, there was code redundancy, which was minimized in this change.
The setupHardwareInfoBase extraction will also be used for ocloc.

Signed-off-by: Daria Hinz <daria.hinz@intel.com>
Related-To: NEO-6910
2022-05-13 09:40:37 +02:00

27 lines
853 B
C++

/*
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_info.h"
namespace NEO {
template <PRODUCT_FAMILY gfxProduct>
struct EnableGfxProductHw {
typedef typename HwMapper<gfxProduct>::GfxProduct GfxProduct;
enum { gfxFamily = HwMapper<gfxProduct>::gfxFamily };
EnableGfxProductHw() {
EnableGfxFamilyHw<static_cast<GFXCORE_FAMILY>(gfxFamily)> enableFamily;
hardwarePrefix[gfxProduct] = HwMapper<gfxProduct>::abbreviation;
defaultHardwareInfoConfigTable[gfxProduct] = GfxProduct::defaultHardwareInfoConfig;
hardwareInfoTable[gfxProduct] = &GfxProduct::hwInfo;
hardwareInfoSetup[gfxProduct] = GfxProduct::setupHardwareInfo;
hardwareInfoBaseSetup[gfxProduct] = GfxProduct::setupHardwareInfoBase;
}
};
} // namespace NEO