mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Revert "Feature(OCL) Use tag nodes for root device synchronization"
This reverts commit 547d1c37b3.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9968857c29
commit
876de37b92
@@ -129,9 +129,6 @@ Event::~Event() {
|
||||
if (timeStampNode != nullptr) {
|
||||
timeStampNode->returnTag();
|
||||
}
|
||||
if (multiRootTimeStampSyncNode != nullptr) {
|
||||
multiRootTimeStampSyncNode->returnTag();
|
||||
}
|
||||
if (perfCounterNode != nullptr) {
|
||||
cmdQueue->getPerfCounters()->deleteQuery(perfCounterNode->getQueryHandleRef());
|
||||
perfCounterNode->getQueryHandleRef() = {};
|
||||
@@ -878,6 +875,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();
|
||||
@@ -885,27 +883,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;
|
||||
|
||||
Reference in New Issue
Block a user