Skip to content

Commit a5d7e49

Browse files
authored
Fix disable no_unique_address for NVCC and CUDA 12.9 (#437)
1 parent 404130d commit a5d7e49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/experimental/__p0009_bits/config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static_assert(MDSPAN_IMPL_CPLUSPLUS >= MDSPAN_CXX_STD_14, "mdspan requires C++14
116116

117117
#if !defined(MDSPAN_IMPL_USE_ATTRIBUTE_NO_UNIQUE_ADDRESS)
118118
# if ((MDSPAN_IMPL_HAS_CPP_ATTRIBUTE(no_unique_address) >= 201803L) && \
119-
(!defined(__NVCC__) || ((__CUDACC_VER_MAJOR__ * 100 + __CUDACC_VER_MINOR__ * 10 < 1209) && MDSPAN_HAS_CXX_20)) && \
119+
(!defined(__NVCC__) || ((__CUDACC_VER_MAJOR__ * 100 + __CUDACC_VER_MINOR__ * 10 < 1290) && MDSPAN_HAS_CXX_20)) && \
120120
(!defined(MDSPAN_IMPL_COMPILER_MSVC) || MDSPAN_HAS_CXX_20))
121121
# define MDSPAN_IMPL_USE_ATTRIBUTE_NO_UNIQUE_ADDRESS 1
122122
# define MDSPAN_IMPL_NO_UNIQUE_ADDRESS [[no_unique_address]]

0 commit comments

Comments
 (0)