refactor: improve post sync handling and in-order unit tests

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-12-13 11:47:42 +00:00
committed by Compute-Runtime-Automation
parent 39561aa7e9
commit 1219c48620
18 changed files with 345 additions and 234 deletions

View File

@@ -21,7 +21,7 @@ InOrderExecInfo::~InOrderExecInfo() {
}
InOrderExecInfo::InOrderExecInfo(NEO::GraphicsAllocation &deviceCounterAllocation, NEO::GraphicsAllocation *hostCounterAllocation, NEO::MemoryManager &memoryManager, uint32_t partitionCount, bool regularCmdList, bool atomicDeviceSignalling)
: deviceCounterAllocation(deviceCounterAllocation), memoryManager(memoryManager), hostCounterAllocation(hostCounterAllocation), regularCmdList(regularCmdList) {
: deviceCounterAllocation(deviceCounterAllocation), memoryManager(memoryManager), hostCounterAllocation(hostCounterAllocation), regularCmdList(regularCmdList), atomicDeviceSignalling(atomicDeviceSignalling) {
numDevicePartitionsToWait = atomicDeviceSignalling ? 1 : partitionCount;
numHostPartitionsToWait = partitionCount;

View File

@@ -39,6 +39,7 @@ class InOrderExecInfo : public NEO::NonCopyableClass {
bool isRegularCmdList() const { return regularCmdList; }
bool isHostStorageDuplicated() const { return duplicatedHostStorage; }
bool isAtomicDeviceSignalling() const { return atomicDeviceSignalling; }
uint32_t getNumDevicePartitionsToWait() const { return numDevicePartitionsToWait; }
uint32_t getNumHostPartitionsToWait() const { return numHostPartitionsToWait; }
@@ -60,6 +61,7 @@ class InOrderExecInfo : public NEO::NonCopyableClass {
uint32_t allocationOffset = 0;
bool regularCmdList = false;
bool duplicatedHostStorage = false;
bool atomicDeviceSignalling = false;
};
namespace InOrderPatchCommandHelpers {