SWDEV-24806 - Added support for event wait and event record graph APIs

hip graph implementation for APIs AddEventRecordNode, AddEventWaitNode, EventRecordNodeGetEvent, EventWaitNodeGetEvent, EventRecordNodeSetEvent,EventWaitNodeSetEvent, ExecEventRecordNodeSetEvent, ExecEventWaitNodeSetEvent

Change-Id: Ifde51f4591067795d6cbf5595372cbdbd8a7bc26


[ROCm/clr commit: f6456c5e27]
Этот коммит содержится в:
anusha GodavarthySurya committed 2021-10-06 00:31:42 -07:00
1 родитель be487b261b
Коммит 20e5aace05
11 files changed
+353 -157

No files matched your search

+8 -3
Просмотреть файл
@@ -391,15 +391,20 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
hip::Event* eStart = reinterpret_cast<hip::Event*>(startEvent);
hip::Event* eStop = reinterpret_cast<hip::Event*>(stopEvent);
command->enqueue();
if (startEvent != nullptr) {
eStart->addMarker(queue, command, false);
status = eStart->addMarker(hStream, command, false);
command->retain();
}
if (status != hipSuccess) {
return status;
}
if (stopEvent != nullptr) {
eStop->addMarker(queue, command, true);
status = eStop->addMarker(hStream, command, true);
command->retain();
}
if (status != hipSuccess) {
return status;
}
command->release();
return hipSuccess;