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

Commit

Permalink
Fix for Issue #128: 7-bit sorting passes fail for sm61 w/ large-values
Browse files Browse the repository at this point in the history
  • Loading branch information
dumerrill committed Feb 8, 2018
1 parent 5b065ee commit a921e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGE_LOG.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Bug fixes:
- Syntax tweaks to mollify Clang
- Issue #127: DeviceRunLengthEncode::Encode returns wrong results
- Issue #128: 7-bit sorting passes fail for sm61 w/ large-values


//-----------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions cub/block/block_radix_rank.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public:
enum
{
/// Number of bin-starting offsets tracked per thread
BINS_TRACKED_PER_THREAD = CUB_MAX(1, RADIX_DIGITS / BLOCK_THREADS),
BINS_TRACKED_PER_THREAD = CUB_MAX(1, (RADIX_DIGITS + BLOCK_THREADS - 1) / BLOCK_THREADS),
};

private:
Expand Down Expand Up @@ -495,7 +495,7 @@ public:
enum
{
/// Number of bin-starting offsets tracked per thread
BINS_TRACKED_PER_THREAD = CUB_MAX(1, RADIX_DIGITS / BLOCK_THREADS),
BINS_TRACKED_PER_THREAD = CUB_MAX(1, (RADIX_DIGITS + BLOCK_THREADS - 1) / BLOCK_THREADS),
};

private:
Expand Down

0 comments on commit a921e86

Please sign in to comment.