Files
compute-runtime/runtime/helpers/enable_product.inl
Mateusz Jablonski 54f65c0243 Move headers to core
- hw_info
- hw_cmds
- kmd_notify_properties
- completion_stamp
- bxml_generator_glue

Related-To: NEO-3982
Change-Id: I3ed3ef81f42596f381e60c19250f6eb1296d47a4
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-12-02 14:20:45 +01:00

26 lines
766 B
C++

/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/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;
}
};
} // namespace NEO