We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11596d6 commit 341eabcCopy full SHA for 341eabc
cub/cub/block/block_run_length_decode.cuh
@@ -382,7 +382,8 @@ public:
382
{
383
decoded_items[i] = val;
384
item_offsets[i] = thread_decoded_offset - assigned_run_begin;
385
- if ((i == DECODED_ITEMS_PER_THREAD - 1) && (thread_decoded_offset == assigned_run_end - 1))
+ if ((DECODED_ITEMS_PER_THREAD > 1 && i < DECODED_ITEMS_PER_THREAD - 1)
386
+ && (thread_decoded_offset == assigned_run_end - 1))
387
388
// We make sure that a thread is not re-entering this conditional when being assigned to the last run already by
389
// extending the last run's length to all the thread's item
0 commit comments