Math

Header

Content

CCCL Availability

CUDA Toolkit Availability

ceil_div

Ceiling division

CCCL 2.7.0

CUDA 12.8

round_up

Round up to the next multiple

CCCL 2.9.0

CUDA 12.9

round_down

Round down to the previous multiple

CCCL 2.9.0

CUDA 12.9

ilog2

Integer logarithm to the base 2

CCCL 3.0.0

CUDA 13.0

ilog10

Integer logarithm to the base 10

CCCL 3.0.0

CUDA 13.0