Commit 25f5912
committed
Skip hipStreamSynchronize on iGPU when stream is idle
On integrated GPUs with fine-grained coherent unified memory,
hipStreamSynchronize is unnecessary when the stream has no pending
work. Use hipStreamQuery (non-blocking) to check first, only sync
when the stream is actually busy.
Results: hipStreamSynchronize calls reduced from 5683 to 54 (-99%).1 parent ef8190c commit 25f5912
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
554 | 559 | | |
555 | 560 | | |
556 | 561 | | |
| |||
0 commit comments