SWDEV-316792 - Fix for Event node

Change-Id: Ibb402648212c4d1d198e44ad9d166a2776805739


[ROCm/clr commit: a48429e922]
Этот коммит содержится в:
Sarbojit Sarkar
2022-01-24 16:37:21 +00:00
коммит произвёл Sarbojit Sarkar
родитель 17f228dcef
Коммит 855eb801eb
+3 -1
Просмотреть файл
@@ -1199,6 +1199,7 @@ hipError_t hipStreamGetCaptureInfo_v2(hipStream_t stream, hipStreamCaptureStatus
*graph_out = s->GetCaptureGraph();
}
if (dependencies_out != nullptr && numDependencies_out != nullptr) {
auto t= s->GetLastCapturedNodes().data();
*dependencies_out = s->GetLastCapturedNodes().data();
*numDependencies_out = s->GetLastCapturedNodes().size();
}
@@ -1560,7 +1561,8 @@ hipError_t hipGraphEventWaitNodeGetEvent(hipGraphNode_t node, hipEvent_t* event_
hipError_t hipGraphEventWaitNodeSetEvent(hipGraphNode_t node, hipEvent_t event) {
HIP_INIT_API(hipGraphEventWaitNodeSetEvent, node, event);
if (node == nullptr || event == nullptr) {
if (node == nullptr || event == nullptr ||
node->GetType() != hipGraphNodeTypeWaitEvent) {
HIP_RETURN(hipErrorInvalidValue);
}
HIP_RETURN(reinterpret_cast<hipGraphEventWaitNode*>(node)->SetParams(event));