SWDEV-498077 - Check topoOrder_ before accessing it.
Change-Id: I10e3c24ca8dc1009b8ac8ac27b3e9a6296f9a7ee
This commit is contained in:
@@ -838,7 +838,7 @@ hipError_t GraphExec::Run(hipStream_t graph_launch_stream) {
|
||||
|
||||
// If this is a repeat launch, make sure corresponding MemFreeNode exists for a MemAlloc node
|
||||
if (repeatLaunch_ == true) {
|
||||
if (topoOrder_[0]->GetParentGraph()->GetMemAllocNodeCount() > 0) {
|
||||
if (!topoOrder_.empty() && topoOrder_[0]->GetParentGraph()->GetMemAllocNodeCount() > 0) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
} else {
|
||||
|
||||
مرجع در شماره جدید
Block a user