mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
refactor: improve post sync handling and in-order unit tests
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
39561aa7e9
commit
1219c48620
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user