Skip to content

Commit

Permalink
One more check to make sure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbalin committed Jul 12, 2024
1 parent 0fb9a5b commit 82f1013
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions graphbolt/src/cnumpy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ void OnDiskNpyArray::IndexSelectIOUringImpl(
read_queue.Clear();
// Wait for the reads.
struct io_uring_cqe *cqe;
TORCH_CHECK(num_submitted - num_completed <= 2 * kGroupSize);
TORCH_CHECK(
::io_uring_wait_cqe_nr(
&my_io_uring_queue, &cqe, num_submitted - num_completed) == 0);
Expand Down

0 comments on commit 82f1013

Please sign in to comment.