mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Add support for new acronyms in disasm
The "disasm" option in ocloc was not validate new acronyms. despite handling them in "compile". This PR is fixing the issue - ocloc disasm supports new & deprecated acronyms. https://github.com/intel/compute-runtime/issues/582 Signed-off-by: Daria Hinz <daria.hinz@intel.com> Related-To: NEO-7509
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4476e7ad76
commit
31deb4fd63
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "shared/test/unit_test/helpers/product_config_helper_tests.h"
|
||||
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/utilities/const_stringref.h"
|
||||
#include "shared/test/common/helpers/default_hw_info.h"
|
||||
#include "shared/test/common/test_macros/test.h"
|
||||
@@ -493,6 +494,29 @@ TEST_F(AotDeviceInfoTests, givenUnknownIsaWhenGetDeviceAotInfoThenFalseIsReturne
|
||||
EXPECT_TRUE(aotInfo == emptyInfo);
|
||||
}
|
||||
|
||||
TEST_F(AotDeviceInfoTests, givenDeviceAcronymsOrProductConfigWhenGetProductFamilyThenCorrectResultIsReturned) {
|
||||
auto &enabledProducts = productConfigHelper->getDeviceAotInfo();
|
||||
|
||||
for (const auto &product : enabledProducts) {
|
||||
auto config = ProductConfigHelper::parseMajorMinorRevisionValue(product.aotConfig);
|
||||
auto productFamily = productConfigHelper->getProductFamilyForAcronym(config);
|
||||
EXPECT_EQ(productFamily, product.hwInfo->platform.eProductFamily);
|
||||
|
||||
for (const auto &acronym : product.acronyms) {
|
||||
productFamily = productConfigHelper->getProductFamilyForAcronym(acronym.str());
|
||||
EXPECT_EQ(productFamily, product.hwInfo->platform.eProductFamily);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(AotDeviceInfoTests, givenDeprecatedDeviceAcronymsWhenGetProductFamilyThenUnknownIsReturned) {
|
||||
auto deprecatedAcronyms = productConfigHelper->getDeprecatedAcronyms();
|
||||
|
||||
for (const auto &acronym : deprecatedAcronyms) {
|
||||
EXPECT_EQ(productConfigHelper->getProductFamilyForAcronym(acronym.str()), IGFX_UNKNOWN);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(AotDeviceInfoTests, givenProductConfigHelperWhenGetDeviceAcronymsThenCorrectResultsAreReturned) {
|
||||
auto acronyms = productConfigHelper->getDeviceAcronyms();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user