CUDA Macros#
Defines
-
SUPPORTS_FP8 0#
CUDA feature detection helpers.
Centralizes CUDA-version-based feature macros to avoid scattering
#if CUDA_VERSION ...checks throughout the codebase.Usage example:
#include "common/cudaMacros.h" #if SUPPORTS_FP8 // Safe to reference __nv_fp8_e4m3 and related helpers. #endif
Note
When FP8 is supported (CUDA >= 11.8), this header also includes
<cuda_fp8.h>, so callers do NOT need to conditionally include it themselves.