refactor: add getter to in order exec info class

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2024-04-11 18:55:27 +00:00
committed by Compute-Runtime-Automation
parent 016529ac12
commit 3b9e1e4b32
3 changed files with 4 additions and 1 deletions

View File

@@ -2521,7 +2521,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendWaitOnInOrderDependency(std::sh
bool indirectMode = false; bool indirectMode = false;
size_t inOrderPatchListIndex = 0; size_t inOrderPatchListIndex = std::numeric_limits<size_t>::max();
if (isQwordInOrderCounter()) { if (isQwordInOrderCounter()) {
indirectMode = true; indirectMode = true;

View File

@@ -79,6 +79,7 @@ class InOrderExecInfo : public NEO::NonCopyableClass {
uint32_t getAllocationOffset() const { return allocationOffset; } uint32_t getAllocationOffset() const { return allocationOffset; }
void reset(); void reset();
bool isExternalMemoryExecInfo() const { return deviceCounterNode == nullptr; }
protected: protected:
NEO::MemoryManager &memoryManager; NEO::MemoryManager &memoryManager;

View File

@@ -66,6 +66,7 @@ HWTEST_F(CommandEncoderTests, givenDifferentInputParamsWhenCreatingStandaloneInO
EXPECT_EQ(gpuAddress, inOrderExecInfo->getBaseDeviceAddress()); EXPECT_EQ(gpuAddress, inOrderExecInfo->getBaseDeviceAddress());
EXPECT_EQ(nullptr, inOrderExecInfo->getDeviceCounterAllocation()); EXPECT_EQ(nullptr, inOrderExecInfo->getDeviceCounterAllocation());
EXPECT_EQ(nullptr, inOrderExecInfo->getHostCounterAllocation()); EXPECT_EQ(nullptr, inOrderExecInfo->getHostCounterAllocation());
EXPECT_TRUE(inOrderExecInfo->isExternalMemoryExecInfo());
inOrderExecInfo->reset(); inOrderExecInfo->reset();
@@ -100,6 +101,7 @@ HWTEST_F(CommandEncoderTests, givenDifferentInputParamsWhenCreatingInOrderExecIn
EXPECT_EQ(2u, inOrderExecInfo->getNumDevicePartitionsToWait()); EXPECT_EQ(2u, inOrderExecInfo->getNumDevicePartitionsToWait());
EXPECT_EQ(2u, inOrderExecInfo->getNumHostPartitionsToWait()); EXPECT_EQ(2u, inOrderExecInfo->getNumHostPartitionsToWait());
EXPECT_EQ(0u, InOrderPatchCommandHelpers::getAppendCounterValue(*inOrderExecInfo)); EXPECT_EQ(0u, InOrderPatchCommandHelpers::getAppendCounterValue(*inOrderExecInfo));
EXPECT_FALSE(inOrderExecInfo->isExternalMemoryExecInfo());
} }
{ {