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

Commit

Permalink
Fix some integer overflows
Browse files Browse the repository at this point in the history
  • Loading branch information
RAMitchell authored and alliepiper committed Nov 5, 2020
1 parent 1a5aeaf commit 2ed4781
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cub/agent/agent_reduce_by_key.cuh
Expand Up @@ -518,7 +518,7 @@ struct AgentReduceByKey
* Scan tiles of items as part of a dynamic chained scan
*/
__device__ __forceinline__ void ConsumeRange(
int num_items, ///< Total number of input items
OffsetT num_items, ///< Total number of input items
ScanTileStateT& tile_state, ///< Global tile state descriptor
int start_tile) ///< The starting tile for the current grid
{
Expand Down
2 changes: 1 addition & 1 deletion cub/agent/agent_segment_fixup.cuh
Expand Up @@ -346,7 +346,7 @@ struct AgentSegmentFixup
* Scan tiles of items as part of a dynamic chained scan
*/
__device__ __forceinline__ void ConsumeRange(
int num_items, ///< Total number of input items
OffsetT num_items, ///< Total number of input items
int num_tiles, ///< Total number of input tiles
ScanTileStateT& tile_state) ///< Global tile state descriptor
{
Expand Down

0 comments on commit 2ed4781

Please sign in to comment.