From b55e38dbdfdde1b94df7c6d05cd3c91063d65b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20J=C3=BCnger?= Date: Thu, 29 Aug 2024 02:23:14 +0200 Subject: [PATCH] Add diagnostic to detect unsupported or missing CCCL (#591) --- include/cuco/detail/__config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/cuco/detail/__config b/include/cuco/detail/__config index 6d4bf7339..24c7758ab 100644 --- a/include/cuco/detail/__config +++ b/include/cuco/detail/__config @@ -17,6 +17,7 @@ #pragma once #include +#include #if !defined(__CUDACC_VER_MAJOR__) || !defined(__CUDACC_VER_MINOR__) #error "NVCC version not found" @@ -32,6 +33,10 @@ #error "Support for extended device lambdas is required (nvcc flag --expt-extended-lambda)" #endif +#if !defined(CCCL_VERSION) || (CCCL_VERSION < 2005000) +#error "CCCL version 2.5.0 or later is required" +#endif + // WAR for libcudacxx/296 #define CUCO_CUDA_MINIMUM_ARCH _NV_FIRST_ARG(__CUDA_ARCH_LIST__)