SWDEV-315567 - hipGraphNodeTypeEventRecord node type get/set fixes

Change-Id: I76e866990a153fb254e1187e7fabcc1f93806469


[ROCm/clr commit: ed487980cd]
Este cometimento está contido em:
Ajay criou e Ajay GunaShekar cometeu 2022-03-23 14:05:31 -04:00
1 ascendente 8d7abecaa8
cometimento ff6fb01aa1
1 ficheiro modificado
+4 -2
+4 -2
Ver ficheiro
@@ -1620,7 +1620,8 @@ hipError_t hipGraphAddEventRecordNode(hipGraphNode_t* pGraphNode, hipGraph_t gra
hipError_t hipGraphEventRecordNodeGetEvent(hipGraphNode_t node, hipEvent_t* event_out) {
HIP_INIT_API(hipGraphEventRecordNodeGetEvent, node, event_out);
if (node == nullptr || event_out == nullptr) {
if (node == nullptr || event_out == nullptr ||
node->GetType() != hipGraphNodeTypeEventRecord) {
HIP_RETURN(hipErrorInvalidValue);
}
reinterpret_cast<hipGraphEventRecordNode*>(node)->GetParams(event_out);
@@ -1629,7 +1630,8 @@ hipError_t hipGraphEventRecordNodeGetEvent(hipGraphNode_t node, hipEvent_t* even
hipError_t hipGraphEventRecordNodeSetEvent(hipGraphNode_t node, hipEvent_t event) {
HIP_INIT_API(hipGraphEventRecordNodeSetEvent, node, event);
if (node == nullptr || event == nullptr) {
if (node == nullptr || event == nullptr ||
node->GetType() != hipGraphNodeTypeEventRecord ) {
HIP_RETURN(hipErrorInvalidValue);
}
HIP_RETURN(reinterpret_cast<hipGraphEventRecordNode*>(node)->SetParams(event));