feature: enable standalone profiling allocation for CB events

Related-To: NEO-11925

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2024-09-27 08:56:32 +00:00
committed by Compute-Runtime-Automation
parent 6cb0e45330
commit f3b266f7b8
2 changed files with 14 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ template Event *Event::create<uint64_t>(const EventDescriptor &, const ze_event_
template Event *Event::create<uint32_t>(const EventDescriptor &, const ze_event_desc_t *, Device *);
bool Event::standaloneInOrderTimestampAllocationEnabled() {
return (NEO::debugManager.flags.StandaloneInOrderTimestampAllocationEnabled.get() == 1);
return (NEO::debugManager.flags.StandaloneInOrderTimestampAllocationEnabled.get() != 0);
}
ze_result_t EventPool::initialize(DriverHandle *driver, Context *context, uint32_t numDevices, ze_device_handle_t *deviceHandles) {

View File

@@ -6622,11 +6622,23 @@ HWTEST2_F(InOrderRegularCmdListTests, givenAddedCmdForPatchWhenUpdateNewInOrderI
struct StandaloneInOrderTimestampAllocationTests : public InOrderCmdListTests {
void SetUp() override {
NEO::debugManager.flags.StandaloneInOrderTimestampAllocationEnabled.set(1);
InOrderCmdListTests::SetUp();
}
};
HWTEST2_F(StandaloneInOrderTimestampAllocationTests, givenDebugFlagSetWhenCreatingEventThenDontCreateTimestampNode, MatchAny) {
NEO::debugManager.flags.StandaloneInOrderTimestampAllocationEnabled.set(0);
auto eventPool = createEvents<FamilyType>(1, true);
auto cmdList = createImmCmdList<gfxCoreFamily>();
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<FamilyType>(2, true);