Macros#

CCCL provides a set of convenience macros for detecting various system and compile-time properties via the preprocessor. These macros are available when any CCCL header is included, and do not require including a specific header file.

Macro

Content

CCCL Availability

CUDA Toolkit Availability

Detecting the current host architecture.

CCCL 3.5.0

CUDA 13.5

Detecting the current host compiler and optionally comparing its version.

CCCL 3.6.0

CUDA 13.6

Detecting the current operating system.

CCCL 3.4.0

CUDA 13.3