Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix get_rows_per_block (#15979)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrendx committed Aug 23, 2019
1 parent fa16a9e commit fade159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/cuda_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int get_rows_per_block(size_t row_size, int num_threads_per_block) {
int actual_num_warps_per_row = std::min(desired_num_warps_per_row,
num_threads_per_block / warp_size);
// actual number of warps needs to be power of 2
actual_num_warps_per_row = RoundToPower2(desired_num_warps_per_row);
actual_num_warps_per_row = RoundToPower2(actual_num_warps_per_row);
return num_threads_per_block / (warp_size * actual_num_warps_per_row);
}

Expand Down

0 comments on commit fade159

Please sign in to comment.