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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user