Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
revert scan_by_key tile_idx type to int, static_cast on multiplicatio…
Browse files Browse the repository at this point in the history
…n instead.
  • Loading branch information
cwharris committed May 10, 2021
1 parent f537e42 commit 62e1891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thrust/system/cuda/detail/scan_by_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,8 @@ namespace __scan_by_key {
inequality_op(equality_op_),
scan_op(scan_op_)
{
Size tile_idx = blockIdx.x;
Size tile_base = ITEMS_PER_TILE * tile_idx;
int tile_idx = blockIdx.x;
Size tile_base = ITEMS_PER_TILE * static_cast<Size>(tile_idx);
Size num_remaining = num_items - tile_base;

if (num_remaining > ITEMS_PER_TILE)
Expand Down

0 comments on commit 62e1891

Please sign in to comment.