CCCL Runtime: A Modern C++ Runtime for CUDA

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

CUDA C++ developers can now use modern, type-safe C++ APIs for streams, memory and kernel launches in CUDA 13.2 instead of the legacy C runtime.

Read this as

NVIDIA has added a new programming toolkit called the CCCL runtime, available starting with CUDA 13.2. It gives software developers a modern C++ way of working with GPUs, the chips that power AI and graphics, replacing older, error-prone rules with safeguards that catch mistakes before the program runs. It matters to the programmers who build GPU-accelerated applications; ordinary users will simply see fewer bugs and, eventually, better software.

NVIDIA is modernising how GPU software is written: the CCCL runtime, shipped in CUDA Toolkit 13.2, replaces the two-decade-old C-style CUDA runtime with type-checked C++ APIs. For engineering leaders, the pitch is fewer hard-to-diagnose memory bugs and less boilerplate error handling, with incremental adoption possible alongside existing CUDA code. There is no migration deadline, the old runtime still works, so the cost is developer retraining rather than a forced rewrite.

Available in CUDA 13.2, CCCL runtime is a header-only C++ layer replacing the legacy CUDA runtime API. Devices and streams use strong types (cuda::device_ref, cuda::stream) with owning/_ref pairs, eliminating implicit global state and the default stream; streams take an explicit device in the constructor. Memory allocation is stream-ordered via memory pools by default, with cuda::make_buffer requiring initialisation unless cuda::no_init is passed. cuda::launch embeds block size as a template parameter for compile-time thread-rank calculations, uses exceptions instead of error codes, and cudaStream_t converts implicitly to cuda::stream_ref for interop with existing code.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

CUDA CCCL runtime CUDA 13.2 cuda::stream cuda::make_buffer cuda::launch NVIDIA Nemotron

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading