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
Este commit está contenido en:
Saleel Kudchadker
2022-04-01 15:16:13 -07:00
padre c1503da69b
commit f320acb797
Se han modificado 4 ficheros con 23 adiciones y 9 borrados
+1 -1
Ver fichero
@@ -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);