fix: add missing API to extension lookup map

Related-To: NEO-7966

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz 2024-01-03 15:16:36 +00:00 committed by Compute-Runtime-Automation
parent 3a5345015c
commit c03fe171f8
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -24,6 +24,7 @@ std::unordered_map<std::string, void *> getExtensionFunctionsLookupMap() {
addToMap(lookupMap, zexMemOpenIpcHandles);
addToMap(lookupMap, zexCommandListAppendWaitOnMemory);
addToMap(lookupMap, zexCommandListAppendWaitOnMemory64);
addToMap(lookupMap, zexCommandListAppendWriteToMemory);
#undef addToMap

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -5145,5 +5145,10 @@ HWTEST2_F(RTASDeviceTest, GivenMissingSymbolsInRTASLibraryWhenQueryingRTASPropte
EXPECT_EQ(ZE_RTAS_FORMAT_EXP_INVALID, rtasProperties.rtasFormat);
}
TEST(ExtensionLookupTest, givenLookupMapWhenAskingForZexCommandListAppendWaitOnMemory64ThenReturnCorrectValue) {
auto map = getExtensionFunctionsLookupMap();
EXPECT_NE(map.end(), map.find("zexCommandListAppendWaitOnMemory64"));
}
} // namespace ult
} // namespace L0