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

Commit

Permalink
Merge pull request #109 from ebrevdo/master
Browse files Browse the repository at this point in the history
Fix DeviceHistogram bug: non-native input iterators take the correct code path.
  • Loading branch information
dumerrill authored Aug 28, 2017
2 parents 53cfb10 + 525970f commit 16c2f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cub/agent/agent_histogram.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ struct AgentHistogram
((row_bytes & pixel_mask) == 0); // number of row-samples is a multiple of the alignment of the pixel

// Whether rows are aligned and can be vectorized
if (quad_aligned_rows || pixel_aligned_rows)
if ((d_native_samples != nullptr) && (quad_aligned_rows || pixel_aligned_rows))
ConsumeTiles<true>(num_row_pixels, num_rows, row_stride_samples, tiles_per_row, tile_queue, Int2Type<IS_WORK_STEALING>());
else
ConsumeTiles<false>(num_row_pixels, num_rows, row_stride_samples, tiles_per_row, tile_queue, Int2Type<IS_WORK_STEALING>());
Expand Down

0 comments on commit 16c2f87

Please sign in to comment.