mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
6cb0e45330
commit
f3b266f7b8
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user