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
此提交包含在:
anusha GodavarthySurya
2021-10-05 10:06:40 -07:00
父節點 c4eda85835
當前提交 f6456c5e27
共有 11 個檔案被更改,包括 353 行新增 和 157 行删除
+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;