mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 18:25:05 +08:00
Cleaned up files: shared/source/helpers/hw_info.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
27 lines
561 B
C++
27 lines
561 B
C++
/*
|
|
* Copyright (C) 2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "igfxfmid.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <PRODUCT_FAMILY product>
|
|
struct HwMapper {};
|
|
|
|
// Utility conversion
|
|
template <PRODUCT_FAMILY productFamily>
|
|
struct ToGfxCoreFamily {
|
|
static const GFXCORE_FAMILY gfxCoreFamily =
|
|
static_cast<GFXCORE_FAMILY>(NEO::HwMapper<productFamily>::gfxFamily);
|
|
static constexpr GFXCORE_FAMILY get() { return gfxCoreFamily; }
|
|
};
|
|
|
|
template <GFXCORE_FAMILY gfxFamily>
|
|
struct GfxFamilyMapper {};
|
|
|
|
} // namespace NEO
|