SWDEV-498077 - Check topoOrder_ before accessing it.
Change-Id: I10e3c24ca8dc1009b8ac8ac27b3e9a6296f9a7ee
[ROCm/clr commit: d997f78be4]
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Rakesh Roy
γονέας
eae7d9bdc8
υποβολή
0bbf2d5244
@@ -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