Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhulenev committed Sep 1, 2023
1 parent a28ed5d commit f74758e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions experimental/cuda2/event_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ iree_status_t iree_hal_cuda2_event_pool_acquire(
IREE_TRACE_ZONE_END(z1);
}

// Retain a reference to a pool when we pass event to the caller. When caller
// returns event to the pool we'll release the reference.
for (unsigned i = 0; i < event_count; ++i) {
// Retain a reference to a pool when we pass event to the caller. When the
// caller returns event back to the pool they'll release the reference.
for (iree_host_size_t i = 0; i < event_count; ++i) {
iree_hal_cuda2_event_pool_retain(out_events[i]->pool); // +1
}

Expand Down

0 comments on commit f74758e

Please sign in to comment.