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

Fix some integer overflows #215

Merged
merged 1 commit into from Nov 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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_scan.cuh
Expand Up @@ -330,7 +330,7 @@ struct AgentScan
* 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