From d12c63201d278935cb915c98fec4853269803da2 Mon Sep 17 00:00:00 2001 From: "Neil R. Spruit" Date: Fri, 22 Aug 2025 12:43:44 -0700 Subject: [PATCH] [UR][L0][V2] Fixed supported logic for external semaphore Signed-off-by: Neil R. Spruit --- .../source/adapters/level_zero/v2/command_list_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unified-runtime/source/adapters/level_zero/v2/command_list_manager.cpp b/unified-runtime/source/adapters/level_zero/v2/command_list_manager.cpp index 04ddafa1115be..3561d84ae3962 100644 --- a/unified-runtime/source/adapters/level_zero/v2/command_list_manager.cpp +++ b/unified-runtime/source/adapters/level_zero/v2/command_list_manager.cpp @@ -911,7 +911,7 @@ ur_result_t ur_command_list_manager::bindlessImagesWaitExternalSemaphoreExp( uint64_t waitValue, uint32_t numEventsInWaitList, const ur_event_handle_t *phEventWaitList, ur_event_handle_t phEvent) { auto hPlatform = hContext->getPlatform(); - if (!hPlatform->ZeExternalSemaphoreExt.Supported == false) { + if (hPlatform->ZeExternalSemaphoreExt.Supported == false) { UR_LOG_LEGACY(ERR, logger::LegacyMessage("[UR][L0] {} function not supported!"), "{} function not supported!", __FUNCTION__); @@ -941,7 +941,7 @@ ur_result_t ur_command_list_manager::bindlessImagesSignalExternalSemaphoreExp( uint64_t signalValue, uint32_t numEventsInWaitList, const ur_event_handle_t *phEventWaitList, ur_event_handle_t phEvent) { auto hPlatform = hContext->getPlatform(); - if (!hPlatform->ZeExternalSemaphoreExt.Supported == false) { + if (hPlatform->ZeExternalSemaphoreExt.Supported == false) { UR_LOG_LEGACY(ERR, logger::LegacyMessage("[UR][L0] {} function not supported!"), "{} function not supported!", __FUNCTION__);