diff --git a/cub/cub/agent/single_pass_scan_operators.cuh b/cub/cub/agent/single_pass_scan_operators.cuh index 3f1d232558b..8ec7ec37983 100644 --- a/cub/cub/agent/single_pass_scan_operators.cuh +++ b/cub/cub/agent/single_pass_scan_operators.cuh @@ -926,7 +926,7 @@ struct ScanTileState { value = ThreadLoad(d_tile_partial + TILE_STATUS_PADDING + tile_idx); } - else + else if (status == StatusWord(SCAN_TILE_INCLUSIVE)) { value = ThreadLoad(d_tile_inclusive + TILE_STATUS_PADDING + tile_idx); }