Skip to content

Commit 1c59e6e

Browse files
committed
[UR][HIP] Cleanup urQueueFinish
Capturing the result is no longer needed
1 parent ec584bd commit 1c59e6e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

unified-runtime/source/adapters/hip/queue.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueFinish(ur_queue_handle_t hQueue) {
179179
try {
180180
ScopedDevice Active(hQueue->getDevice());
181181

182-
hQueue->syncStreams<true>(
183-
[&Result](hipStream_t S) { UR_CHECK_ERROR(hipStreamSynchronize(S)); });
182+
hQueue->syncStreams</*ResetUsed=*/true>(
183+
[](hipStream_t S) { UR_CHECK_ERROR(hipStreamSynchronize(S)); });
184+
184185
} catch (ur_result_t Err) {
185186
Result = Err;
186187
} catch (...) {

0 commit comments

Comments
 (0)