mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
test: improve ocloc test to recognize all device ids
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a333b048fe
commit
a8ab6cb9b4
@@ -566,9 +566,10 @@ TEST_F(MockOfflineCompilerTests, givenDeviceIdsFromDevicesFileWhenInitHwInfoThen
|
||||
MockOfflineCompiler mockOfflineCompiler;
|
||||
mockOfflineCompiler.argHelper->getPrinterRef().setSuppressMessages(true);
|
||||
for (const auto &deviceId : deviceIds) {
|
||||
mockOfflineCompiler.deviceConfig = AOT::UNKNOWN_ISA;
|
||||
std::stringstream deviceIDStr;
|
||||
deviceIDStr << "0x" << std::hex << deviceId;
|
||||
mockOfflineCompiler.initHardwareInfo(deviceIDStr.str());
|
||||
EXPECT_EQ(OCLOC_SUCCESS, mockOfflineCompiler.initHardwareInfo(deviceIDStr.str()));
|
||||
EXPECT_NE(mockOfflineCompiler.deviceConfig, AOT::UNKNOWN_ISA);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user