From 8adb379b1d194da5ae360f6472076d8f66e7bd8d Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Fri, 18 Mar 2022 13:43:25 -0700 Subject: [PATCH] SWDEV-316226 - Fix to return 'numDependencies' as an independent optional argument in StreamGetCaptureInfo_v2() Change-Id: I19552c4e62401f324ba876d0aa36472ebaa37aa0 --- hipamd/src/hip_graph.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hipamd/src/hip_graph.cpp b/hipamd/src/hip_graph.cpp index 95cfc4e868..d87597e3ec 100644 --- a/hipamd/src/hip_graph.cpp +++ b/hipamd/src/hip_graph.cpp @@ -1286,9 +1286,10 @@ hipError_t hipStreamGetCaptureInfo_v2(hipStream_t stream, hipStreamCaptureStatus if (graph_out != nullptr) { *graph_out = s->GetCaptureGraph(); } - if (dependencies_out != nullptr && numDependencies_out != nullptr) { - auto t= s->GetLastCapturedNodes().data(); + if (dependencies_out != nullptr) { *dependencies_out = s->GetLastCapturedNodes().data(); + } + if (numDependencies_out != nullptr) { *numDependencies_out = s->GetLastCapturedNodes().size(); } }