Skip to content

Commit

Permalink
bug fix in assert
Browse files Browse the repository at this point in the history
  • Loading branch information
seunghwak committed Oct 6, 2020
1 parent facc70c commit 97b98ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/include/patterns/update_frontier_v_push_if_out_nbr.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ void update_frontier_v_push_if_out_nbr(
? col_comm_rank * row_comm_size + static_cast<int>(i)
: row_comm_rank + static_cast<int>(i) * row_comm_size;
if (comm_src_rank == comm_rank) {
assert(self_tx_i != std::numeric_limits<size_t>::max());
assert(tx_self_i != std::numeric_limits<size_t>::max());
rx_counts[i] = tx_counts[tx_self_i];
// FIXME: better define request_null (similar to MPI_REQUEST_NULL) under raft::comms
count_requests[tx_counts.size() + i] = std::numeric_limits<raft::comms::request_t>::max();
Expand Down Expand Up @@ -639,7 +639,7 @@ void update_frontier_v_push_if_out_nbr(
? col_comm_rank * row_comm_size + static_cast<int>(i)
: row_comm_rank + static_cast<int>(i) * row_comm_size;
if (comm_src_rank == comm_rank) {
assert(self_tx_i != std::numeric_limits<size_t>::max());
assert(tx_self_i != std::numeric_limits<size_t>::max());
assert(rx_counts[i] == tx_counts[tx_self_i]);
thrust::copy(rmm::exec_policy(handle.get_stream())->on(handle.get_stream()),
buffer_key_first + tx_offsets[tx_self_i],
Expand Down

0 comments on commit 97b98ed

Please sign in to comment.