Skip to content

Commit

Permalink
openVX HIP GPU backend - fix a bug for Graph.GraphState test (ROCm#507)
Browse files Browse the repository at this point in the history
set the graph state to VX_GRAPH_STATE_ABANDONED if the requested action is VX_ACTION_ABANDON
  • Loading branch information
AryanSalmanpour authored May 14, 2021
1 parent c5558ed commit 7b4fb63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions amd_openvx/openvx/ago/ago_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2038,6 +2038,7 @@ static int agoWaitForNodesCompletion(AgoGraph * graph)
if (node->callback) {
vx_action action = node->callback(node);
if (action == VX_ACTION_ABANDON) {
graph->state = VX_GRAPH_STATE_ABANDONED;
status = VX_ERROR_GRAPH_ABANDONED;
break;
}
Expand Down

0 comments on commit 7b4fb63

Please sign in to comment.