Skip to content

Commit 6b0c746

Browse files
Add comment to use ceil_div with CCCL >= 2.8
1 parent 0e10ffd commit 6b0c746

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/axes.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ void copy_type_and_block_size_sweep(nvbench::state &state,
189189
thrust::device_vector<ValueT> inp(nelems, fill_value);
190190
thrust::device_vector<ValueT> out(nelems, ValueT{});
191191

192+
// use cuda::ceil_div(nelems, BLOCK_DIM) with CCCL 2.8 and newer
192193
const auto gridSize = (nelems + BLOCK_DIM - 1) / BLOCK_DIM;
193194

194195
const ValueT *inp_p = thrust::raw_pointer_cast(inp.data());

0 commit comments

Comments
 (0)