Add postSyncAddress to flush after walker

Change-Id: I7fdfaf8e0acc365998cc74306ab715ea3d9c7d72
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2019-02-21 16:59:10 +01:00
committed by sys_ocldev
parent f50461ef9f
commit e53a8e8709
22 changed files with 297 additions and 128 deletions

View File

@@ -557,4 +557,13 @@ void CommandQueue::obtainNewTimestampPacketNodes(size_t numberOfNodes, Timestamp
timestampPacketContainer->add(allocator->getTag());
}
}
size_t CommandQueue::estimateTimestampPacketNodesCount(const MultiDispatchInfo &dispatchInfo) const {
size_t nodesCount = dispatchInfo.size();
auto mainKernel = dispatchInfo.peekMainKernel();
if (mainKernel->requiresCacheFlushCommand(*this)) {
nodesCount++;
}
return nodesCount;
}
} // namespace OCLRT