SWDEV-305016 - Correct timeout logic
Timeout logic should be applied always even if the wait is active.
Change-Id: I2e5db7ac8a0f9a0355ad7b40e4227d76fb002aa0
[ROCm/clr commit: 9877fc9dbf]
This commit is contained in:
@@ -50,7 +50,8 @@ inline bool WaitForSignal(hsa_signal_t signal, bool active_wait = false) {
|
||||
uint64_t timeout = kTimeout100us;
|
||||
if (active_wait) {
|
||||
timeout = kUnlimitedWait;
|
||||
} else if (active_wait_timeout) {
|
||||
}
|
||||
if (active_wait_timeout) {
|
||||
timeout = ROC_ACTIVE_WAIT_TIMEOUT * K;
|
||||
if (timeout == 0) {
|
||||
return false;
|
||||
|
||||
مرجع در شماره جدید
Block a user