mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Change modifies the encoding entry in fatbinary for platforms. If numbering in -device is used, the value PRODUCT_CONFIG will be encoded. The functionality that returns the correct product config values has also been added. Related-To: NEO-6744 Signed-off-by: Daria Hinz <daria.hinz@intel.com>
26 lines
655 B
C++
26 lines
655 B
C++
/*
|
|
* Copyright (C) 2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/os_interface/hw_info_config.h"
|
|
#include "shared/source/xe_hpc_core/hw_cmds_base.h"
|
|
#include "shared/test/common/helpers/default_hw_info.h"
|
|
#include "shared/test/common/test_macros/test.h"
|
|
|
|
using namespace NEO;
|
|
|
|
struct ProductConfigTests : public ::testing::Test {
|
|
void SetUp() override {
|
|
hwInfo = *NEO::defaultHwInfo;
|
|
hwInfoConfig = NEO::HwInfoConfig::get(productFamily);
|
|
}
|
|
|
|
NEO::HwInfoConfig *hwInfoConfig = nullptr;
|
|
NEO::HardwareInfo hwInfo = {};
|
|
PRODUCT_CONFIG productConfig = UNKNOWN_ISA;
|
|
}; |