Files
compute-runtime/opencl/source/gen11/gtpin_setup_gen11.cpp
Kamil Kopryk b08a385f6b refactor: Add GTPinHelper getter in clDevice
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-02-01 16:04:46 +01:00

42 lines
1.0 KiB
C++

/*
* Copyright (C) 2019-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/compiler_interface/compiler_cache.h"
#include "shared/source/compiler_interface/external_functions.h"
#include "shared/source/gen11/hw_cmds_base.h"
#include "shared/source/kernel/implicit_args.h"
#include "opencl/source/gtpin/gtpin_gfx_core_helper.h"
#include "opencl/source/gtpin/gtpin_gfx_core_helper.inl"
#include "opencl/source/gtpin/gtpin_gfx_core_helper_bdw_and_later.inl"
#include "ocl_igc_shared/gtpin/gtpin_ocl_interface.h"
namespace NEO {
extern GTPinGfxCoreHelper *gtpinGfxCoreHelperFactory[IGFX_MAX_CORE];
typedef Gen11Family Family;
static const auto gfxFamily = IGFX_GEN11_CORE;
template <>
uint32_t GTPinGfxCoreHelperHw<Family>::getGenVersion() const {
return gtpin::GTPIN_GEN_11;
}
template class GTPinGfxCoreHelperHw<Family>;
struct GTPinEnableGen11 {
GTPinEnableGen11() {
gtpinGfxCoreHelperFactory[gfxFamily] = &GTPinGfxCoreHelperHw<Family>::get();
}
};
static GTPinEnableGen11 gtpinEnable;
} // namespace NEO