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
This commit is contained in:
Saleel Kudchadker
2022-04-01 15:16:13 -07:00
vanhempi c1503da69b
commit f320acb797
4 muutettua tiedostoa jossa 23 lisäystä ja 9 poistoa
+1 -1
Näytä tiedosto
@@ -130,7 +130,7 @@ hipError_t IPCEvent::streamWait(hipStream_t stream, uint flags) {
return hipSuccess;
}
hipError_t IPCEvent::recordCommand(amd::Command*& command, amd::HostQueue* queue) {
hipError_t IPCEvent::recordCommand(amd::Command*& command, amd::HostQueue* queue, uint32_t flags) {
bool recorded = isRecorded();
if (!recorded) {
command = new amd::Marker(*queue, kMarkerDisableFlush);