SWDEV-342067 - Fixes a minor coding error to loop through all the entries in the map
Change-Id: I837cb4868de2acd3e71ca9a745a62ed0bb2d1400
[ROCm/clr commit: 5ad38a32bf]
Этот коммит содержится в:
коммит произвёл
Sourabh Betigeri
родитель
1402d33098
Коммит
325aca33ad
@@ -122,8 +122,8 @@ bool Heap::ReleaseAllMemory(hip::Stream* stream) {
|
||||
|
||||
// ================================================================================================
|
||||
void Heap::RemoveStream(hip::Stream* stream) {
|
||||
for (auto it = allocations_.begin(); it != allocations_.end();) {
|
||||
it->second.safe_streams_.erase(stream);
|
||||
for (auto it : allocations_) {
|
||||
it.second.safe_streams_.erase(stream);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user