SWDEV-480536 - Disable cpu wait in device synchronize

1) currently cpu wait is set to true, which makes the host wait for last
command in queue to finish even if the kernel execution has already
finished causing delay in device sync call.
2) device sync only needs to await completion when hw event
is not ready.


Change-Id: I91e3e89d39a1193ae06abac822cea8ae651493a5


[ROCm/clr commit: eb1089593e]
Ta zmiana jest zawarta w:
Rahul Manocha authored and Rahul Manocha committed 2024-09-13 15:31:32 -04:00
1 rodzic d7f4f778b3
złożenie b70968d769
Plik 1 zmieniony
+1 -1
+1 -1
Wyświetl plik
@@ -635,7 +635,7 @@ hipError_t hipDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements,
hipError_t hipDeviceSynchronize() {
HIP_INIT_API(hipDeviceSynchronize);
CHECK_SUPPORTED_DURING_CAPTURE();
constexpr bool kDoWaitForCpu = true;
constexpr bool kDoWaitForCpu = false;
hip::getCurrentDevice()->SyncAllStreams(kDoWaitForCpu);
HIP_RETURN(hipSuccess);
}