From d8fbd57847f083c0a05ad0c01caf9f5c8b6ecb25 Mon Sep 17 00:00:00 2001 From: Compute-Runtime-Validation Date: Tue, 1 Oct 2024 02:39:45 +0200 Subject: [PATCH] Revert "feature: enable standalone profiling allocation for CB events 2" This reverts commit 2b48599c38dccbfe405e86f13ca23d6a4bd36daa. Signed-off-by: Compute-Runtime-Validation --- level_zero/core/source/event/event.cpp | 2 +- .../unit_tests/sources/cmdlist/test_in_order_cmdlist.cpp | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/level_zero/core/source/event/event.cpp b/level_zero/core/source/event/event.cpp index b9ccc66ceb..3b9a2e8ca5 100644 --- a/level_zero/core/source/event/event.cpp +++ b/level_zero/core/source/event/event.cpp @@ -42,7 +42,7 @@ template Event *Event::create(const EventDescriptor &, const ze_event_ template Event *Event::create(const EventDescriptor &, const ze_event_desc_t *, Device *); bool Event::standaloneInOrderTimestampAllocationEnabled() { - return (NEO::debugManager.flags.StandaloneInOrderTimestampAllocationEnabled.get() != 0); + return (NEO::debugManager.flags.StandaloneInOrderTimestampAllocationEnabled.get() == 1); } ze_result_t EventPool::initialize(DriverHandle *driver, Context *context, uint32_t numDevices, ze_device_handle_t *deviceHandles) { diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist.cpp index c4a994b9b1..7d4549351e 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist.cpp @@ -6646,15 +6646,6 @@ struct StandaloneInOrderTimestampAllocationTests : public InOrderCmdListTests { } }; -HWTEST2_F(StandaloneInOrderTimestampAllocationTests, givenDebugFlagSetWhenCreatingEventThenDontCreateTimestampNode, MatchAny) { - NEO::debugManager.flags.StandaloneInOrderTimestampAllocationEnabled.set(0); - auto eventPool = createEvents(1, true); - auto cmdList = createImmCmdList(); - cmdList->appendLaunchKernel(kernel->toHandle(), groupCount, events[0]->toHandle(), 0, nullptr, launchParams, false); - EXPECT_EQ(nullptr, events[0]->inOrderTimestampNode); - EXPECT_NE(nullptr, events[0]->eventPoolAllocation); -} - HWTEST2_F(StandaloneInOrderTimestampAllocationTests, givenTimestampEventWhenAskingForAllocationOrGpuAddressThenReturnNodeAllocation, MatchAny) { auto eventPool = createEvents(2, true);