mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Ocloc will handle any new values that may be passed to the -device argument. Supported acronyms are available under cmd: ocloc compile --help Supported patterns: - device acronym - release acronym - family acronym - version (major.minor.revision) Fatbinary will no longer handle major.minor.revision variances, only acronyms allowed. Signed-off-by: Daria Hinz <daria.hinz@intel.com>
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/helpers/constants.h"
|
|
#include "shared/source/helpers/product_config_helper.h"
|
|
#include "shared/source/os_interface/hw_info_config.h"
|
|
#include "shared/test/common/helpers/default_hw_info.h"
|
|
#include "shared/test/common/test_macros/test.h"
|
|
|
|
using namespace NEO;
|
|
|
|
template <typename T>
|
|
struct ProductConfigTest : public T {
|
|
void SetUp() override {
|
|
T::SetUp();
|
|
hwInfo = *NEO::defaultHwInfo;
|
|
hwInfoConfig = NEO::HwInfoConfig::get(productFamily);
|
|
}
|
|
|
|
NEO::HwInfoConfig *hwInfoConfig = nullptr;
|
|
NEO::HardwareInfo hwInfo = {};
|
|
AOT::PRODUCT_CONFIG productConfig = AOT::UNKNOWN_ISA;
|
|
};
|
|
|
|
struct ProductConfigHwInfoTests : public ProductConfigTest<::testing::TestWithParam<std::tuple<AOT::PRODUCT_CONFIG, PRODUCT_FAMILY>>> {
|
|
void SetUp() override {
|
|
ProductConfigTest::SetUp();
|
|
std::tie(productConfig, prod) = GetParam();
|
|
if (prod != productFamily) {
|
|
GTEST_SKIP();
|
|
}
|
|
}
|
|
PRODUCT_FAMILY prod = IGFX_UNKNOWN;
|
|
const AheadOfTimeConfig invalidConfig = {CommonConstants::invalidRevisionID};
|
|
};
|
|
|
|
using ProductConfigTests = ProductConfigTest<::testing::Test>;
|
|
using ProductConfigHwInfoBadRevisionTests = ProductConfigHwInfoTests;
|
|
using ProductConfigHwInfoBadArchTests = ProductConfigHwInfoTests;
|