From b30159aac4344b2dfddcfd9896716a846547ddab Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 2 Nov 2021 10:47:15 -0400 Subject: [PATCH] _LIBCUDACXX_CUDACC_VER major value is computed as the seventh digit The introduction of an extra digit to handle minor CUDACC versions greater than 100 forgot to also increment the major value. Since this meant that all values of _LIBCUDACXX_CUDACC_VER stayed as 6 digits, but we compared against 7 digit values no CUDA versions reported decimal 128 support. --- include/cuda/std/detail/__config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cuda/std/detail/__config b/include/cuda/std/detail/__config index 654142d7e9..ea87ab77c4 100644 --- a/include/cuda/std/detail/__config +++ b/include/cuda/std/detail/__config @@ -23,7 +23,7 @@ #define _LIBCUDACXX_CUDACC_VER_MINOR __CUDACC_VER_MINOR__ #define _LIBCUDACXX_CUDACC_VER_BUILD __CUDACC_VER_BUILD__ #define _LIBCUDACXX_CUDACC_VER \ - _LIBCUDACXX_CUDACC_VER_MAJOR * 10000 + _LIBCUDACXX_CUDACC_VER_MINOR * 1000 + \ + _LIBCUDACXX_CUDACC_VER_MAJOR * 100000 + _LIBCUDACXX_CUDACC_VER_MINOR * 1000 + \ _LIBCUDACXX_CUDACC_VER_BUILD #define _LIBCUDACXX_HAS_NO_LONG_DOUBLE