Skip to content

Commit

Permalink
Add diagnostic to detect unsupported or missing CCCL (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack authored Aug 29, 2024
1 parent a20460c commit b55e38d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/cuco/detail/__config
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma once

#include <nv/target>
#include <cuda/std/version>

#if !defined(__CUDACC_VER_MAJOR__) || !defined(__CUDACC_VER_MINOR__)
#error "NVCC version not found"
Expand All @@ -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__)

Expand Down

0 comments on commit b55e38d

Please sign in to comment.