<cuda/std/version>#

2026-10-07

1 min read time

Applies to Linux and Windows

This page documents cuda::std::version in libhipcxx, which defines version macros for tracking library and feature availability.

See the documentation of the standard header <version>

Extensions#

The following version macros, which are explained in the versioning section, are defined in this header:

  • _LIBCUDACXX_CUDA_API_VERSION

  • _LIBCUDACXX_CUDA_API_VERSION_MAJOR

  • _LIBCUDACXX_CUDA_API_VERSION_MINOR

  • _LIBCUDACXX_CUDA_API_VERSION_PATCH

  • _LIBCUDACXX_CUDA_ABI_VERSION

  • _LIBCUDACXX_CUDA_ABI_VERSION_LATEST

Restrictions#

<cuda/std/version> includes the host standard library’s <version> header, so the standard C++ feature test macros are defined by the host standard library, not by libhipcxx. libhipcxx defines its own __cccl_lib_* macros for the features it provides.