From 2c1173ea32f70a78cdd4df8a3c5076fb3f9fddde Mon Sep 17 00:00:00 2001 From: anusha GodavarthySurya Date: Tue, 19 Oct 2021 08:26:42 -0700 Subject: [PATCH] SWDEV-240806 - hipGraph performance create new graph commands for every launch Change-Id: Ifd4a373d6a76118ae0946238b29accfacbe32937 [ROCm/clr commit: ef1ec6ffde238e8ee139c829b3ff984192674ffb] --- projects/clr/rocclr/platform/command.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/clr/rocclr/platform/command.hpp b/projects/clr/rocclr/platform/command.hpp index 65bf582a3a..395d4642e0 100644 --- a/projects/clr/rocclr/platform/command.hpp +++ b/projects/clr/rocclr/platform/command.hpp @@ -293,6 +293,7 @@ class Command : public Event { //! Update with the list of events this command needs to wait on before dispatch void updateEventWaitList(const EventWaitList& waitList) { for (auto event : waitList) { + event->retain(); eventWaitList_.push_back(event); } }