SWDEV-328556: check for wait event node type
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I4b70cb576df1ab31503d9089591026bebe4df16a
[ROCm/clr commit: 610aa33a8b]
이 커밋은 다음에 포함됨:
1 부모
566cd820ac
커밋
7240db0f2e
1 파일이 변경됨
+2
-1
@@ -1663,7 +1663,8 @@ hipError_t hipGraphAddEventWaitNode(hipGraphNode_t* pGraphNode, hipGraph_t graph
|
||||
|
||||
hipError_t hipGraphEventWaitNodeGetEvent(hipGraphNode_t node, hipEvent_t* event_out) {
|
||||
HIP_INIT_API(hipGraphEventWaitNodeGetEvent, node, event_out);
|
||||
if (node == nullptr || event_out == nullptr) {
|
||||
if (node == nullptr || event_out == nullptr ||
|
||||
node->GetType() != hipGraphNodeTypeWaitEvent) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
reinterpret_cast<hipGraphEventWaitNode*>(node)->GetParams(event_out);
|
||||
|
||||
새 이슈에서 참조
사용자 차단