Files
compute-runtime/opencl/source/helpers/enable_product.inl
Mateusz Jablonski 7df9945ebe Add absolute include paths
Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-23 23:49:12 +01:00

26 lines
774 B
C++

/*
* Copyright (C) 2017-2020 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;
}
};
} // namespace NEO