Revert "feature(ocl) use tags to synchronize multi root device events"

This reverts commit 353a7510b2bd2d774d0b7ee82ee48eae7f5dc1d3.

Signed-off-by: Maciej Plewka maciej.plewka@intel.com
This commit is contained in:
Maciej Plewka
2023-01-17 10:20:46 +00:00
committed by Compute-Runtime-Automation
parent ca518efc17
commit 1421796541
53 changed files with 174 additions and 621 deletions

View File

@@ -131,9 +131,6 @@ Event::~Event() {
if (timeStampNode != nullptr) {
timeStampNode->returnTag();
}
if (multiRootTimeStampSyncNode != nullptr) {
multiRootTimeStampSyncNode->returnTag();
}
if (perfCounterNode != nullptr) {
cmdQueue->getPerfCounters()->deleteQuery(perfCounterNode->getQueryHandleRef());
perfCounterNode->getQueryHandleRef() = {};
@@ -886,6 +883,7 @@ TagNodeBase *Event::getHwTimeStampNode() {
}
TagNodeBase *Event::getHwPerfCounterNode() {
if (!perfCounterNode && cmdQueue->getPerfCounters()) {
const uint32_t gpuReportSize = HwPerfCounter::getSize(*(cmdQueue->getPerfCounters()));
perfCounterNode = cmdQueue->getGpgpuCommandStreamReceiver().getEventPerfCountAllocator(gpuReportSize)->getTag();
@@ -893,27 +891,11 @@ TagNodeBase *Event::getHwPerfCounterNode() {
return perfCounterNode;
}
TagNodeBase *Event::getMultiRootTimestampSyncNode() {
auto lock = getContext()->obtainOwnershipForMultiRootDeviceAllocator();
if (getContext()->getMultiRootDeviceTimestampPacketAllocator() == nullptr) {
auto allocator = cmdQueue->getGpgpuCommandStreamReceiver().createMultiRootDeviceTimestampPacketAllocator(getContext()->getRootDeviceIndices());
getContext()->setMultiRootDeviceTimestampPacketAllocator(allocator);
}
lock.unlock();
if (multiRootDeviceTimestampPacketContainer.get() == nullptr) {
multiRootDeviceTimestampPacketContainer = std::make_unique<TimestampPacketContainer>();
}
multiRootTimeStampSyncNode = getContext()->getMultiRootDeviceTimestampPacketAllocator()->getTag();
multiRootDeviceTimestampPacketContainer->add(multiRootTimeStampSyncNode);
return multiRootTimeStampSyncNode;
}
void Event::addTimestampPacketNodes(const TimestampPacketContainer &inputTimestampPacketContainer) {
timestampPacketContainer->assignAndIncrementNodesRefCounts(inputTimestampPacketContainer);
}
TimestampPacketContainer *Event::getTimestampPacketNodes() const { return timestampPacketContainer.get(); }
TimestampPacketContainer *Event::getMultiRootDeviceTimestampPacketNodes() const { return multiRootDeviceTimestampPacketContainer.get(); }
bool Event::checkUserEventDependencies(cl_uint numEventsInWaitList, const cl_event *eventWaitList) {
bool userEventsDependencies = false;