From f3c28c6d5cfa2c54da92c97735a60cdb7805347d Mon Sep 17 00:00:00 2001 From: Saleel Kudchadker Date: Mon, 13 Nov 2023 13:10:58 -0800 Subject: [PATCH] SWDEV-301667 - StreamwaitEvent may not flush caches Change-Id: I8d648f96273b36d4930216ffa05bf1adb3c408da [ROCm/clr commit: 514b7fc470c7d37386574637ede4463df6cdd7b5] --- projects/clr/hipamd/src/hip_event.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/clr/hipamd/src/hip_event.cpp b/projects/clr/hipamd/src/hip_event.cpp index 745f6f8101..29ba533310 100644 --- a/projects/clr/hipamd/src/hip_event.cpp +++ b/projects/clr/hipamd/src/hip_event.cpp @@ -183,6 +183,9 @@ hipError_t Event::streamWaitCommand(amd::Command*& command, hip::Stream* stream) eventWaitList.push_back(event_); } command = new amd::Marker(*stream, kMarkerDisableFlush, eventWaitList); + // Since we only need to have a dependency on an existing event, + // we may not need to flush any caches. + command->setEventScope(amd::Device::kCacheStateIgnore); if (command == NULL) { return hipErrorOutOfMemory;