Skip to content

Commit

Permalink
replace old-style thread ID computation
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Apr 25, 2020
1 parent 647c94a commit 7d200b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/matrix/csr_kernels.hpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ __global__ __launch_bounds__(default_block_size) void check_unsorted(
}
block.sync();

auto row = threadIdx.x + blockDim.x * static_cast<IndexType>(blockIdx.x);
auto row = thread::get_thread_id_flat<IndexType>();
if (row >= num_rows) {
return;
}
Expand Down

0 comments on commit 7d200b8

Please sign in to comment.