SWDEV-401781 - Auto Clean removes from map so check before remove while submit mem alloc node command.

Change-Id: Id004f75b307c2c769dee556c3d18e781830bcae1


[ROCm/clr commit: a8164d3e12]
Tá an tiomantas seo le fáil i:
Jaydeep Patel údaraithe agus Jaydeepkumar Patel tiomanta 2023-06-29 02:29:01 -04:00
1 tuismitheoir 8969a60e98
tiomantas 621b266d71
2 comhad athraithe
+8 -6

Níor tháinig aon chomhaid le do chuardach

+3 -3
Féach ar an gComhad
@@ -578,9 +578,11 @@ hipError_t hipGraphExec::Run(hipStream_t stream) {
if (hip::getStream(stream) == nullptr) {
return hipErrorInvalidResourceHandle;
}
auto hip_stream = (stream == nullptr) ? hip::getCurrentDevice()->NullStream()
: reinterpret_cast<hip::Stream*>(stream);
if (flags_ & hipGraphInstantiateFlagAutoFreeOnLaunch) {
if (!topoOrder_.empty()) {
topoOrder_[0]->GetParentGraph()->FreeAllMemory();
topoOrder_[0]->GetParentGraph()->FreeAllMemory(hip_stream);
}
}
@@ -597,8 +599,6 @@ hipError_t hipGraphExec::Run(hipStream_t stream) {
repeatLaunch_ = true;
}
auto hip_stream = (stream == nullptr) ? hip::getCurrentDevice()->NullStream()
: reinterpret_cast<hip::Stream*>(stream);
UpdateStream(parallelLists_, hip_stream, this);
std::vector<amd::Command*> rootCommands;
amd::Command* endCommand = nullptr;