From c03fe171f86a3b4eb68dc6f5b392da5aefc5f9dd Mon Sep 17 00:00:00 2001 From: "Dunajski, Bartosz" Date: Wed, 3 Jan 2024 15:16:36 +0000 Subject: [PATCH] fix: add missing API to extension lookup map Related-To: NEO-7966 Signed-off-by: Dunajski, Bartosz --- .../core/source/get_extension_function_lookup_map.cpp | 3 ++- .../core/test/unit_tests/sources/device/test_l0_device.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/level_zero/core/source/get_extension_function_lookup_map.cpp b/level_zero/core/source/get_extension_function_lookup_map.cpp index 4ddca94540..04ea7ec39d 100644 --- a/level_zero/core/source/get_extension_function_lookup_map.cpp +++ b/level_zero/core/source/get_extension_function_lookup_map.cpp @@ -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 getExtensionFunctionsLookupMap() { addToMap(lookupMap, zexMemOpenIpcHandles); addToMap(lookupMap, zexCommandListAppendWaitOnMemory); + addToMap(lookupMap, zexCommandListAppendWaitOnMemory64); addToMap(lookupMap, zexCommandListAppendWriteToMemory); #undef addToMap diff --git a/level_zero/core/test/unit_tests/sources/device/test_l0_device.cpp b/level_zero/core/test/unit_tests/sources/device/test_l0_device.cpp index d09b7ef4dd..a479fcf620 100644 --- a/level_zero/core/test/unit_tests/sources/device/test_l0_device.cpp +++ b/level_zero/core/test/unit_tests/sources/device/test_l0_device.cpp @@ -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