diff --git a/hipamd/src/hip_event.cpp b/hipamd/src/hip_event.cpp index 745f6f8101..29ba533310 100644 --- a/hipamd/src/hip_event.cpp +++ b/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;