SWDEV-276210 - Honor scopes for hipEventRecord

Honor hipEventReleaseToDevice and hipEventReleaseToSystem flags.
hipEventRecord would flush caches if no release flags are provided. To
change this behavior set ROC_EVENT_NO_FLUSH=1

Change-Id: I03e41b515b1d0cf963b0c2d5b9901b09e71a0e59


[ROCm/clr commit: f320acb797]
This commit is contained in:
Saleel Kudchadker
2022-04-01 15:16:13 -07:00
parent 3a7351ef9c
commit 50f0103648
4 changed files with 23 additions and 9 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ void Stream::destroyAllStreams(int deviceId) {
// ================================================================================================
void iHipWaitActiveStreams(amd::HostQueue* blocking_queue, bool wait_null_stream) {
amd::Command::EventWaitList eventWaitList;
amd::Command::EventWaitList eventWaitList(0);
{
amd::ScopedLock lock(streamSetLock);