File tree 7 files changed +7
-15
lines changed
include/cuda/std/detail/libcxx/include
7 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ extern "C++" {
135
135
# endif
136
136
#endif // _LIBCUDACXX_STD_VER
137
137
138
+ #if _LIBCUDACXX_STD_VER < 11
139
+ # error libcu++ requires C++11 or later
140
+ #endif
141
+
138
142
#if (defined(_LIBCUDACXX_COMPILER_NVHPC) && defined(__linux__)) \
139
143
|| defined(_LIBCUDACXX_COMPILER_NVRTC)
140
144
#define __ELF__
Original file line number Diff line number Diff line change 21
21
_LIBCUDACXX_BEGIN_NAMESPACE_STD
22
22
23
23
#if defined(_LIBCUDACXX_IS_CONSTANT_EVALUATED )
24
- #if ( defined(__cuda_std__ ) && _LIBCUDACXX_STD_VER >= 11 ) || _LIBCUDACXX_STD_VER > 17
24
+ #if defined(__cuda_std__ ) || _LIBCUDACXX_STD_VER > 17
25
25
_LIBCUDACXX_INLINE_VISIBILITY
26
26
inline constexpr bool is_constant_evaluated () noexcept {
27
27
return _LIBCUDACXX_IS_CONSTANT_EVALUATED ();
Original file line number Diff line number Diff line change @@ -73,10 +73,6 @@ namespace std
73
73
# error <barrier> is not supported on this single threaded system
74
74
#endif
75
75
76
- #if _LIBCUDACXX_STD_VER < 11
77
- # error <barrier> requires C++11 or later
78
- #endif
79
-
80
76
_LIBCUDACXX_BEGIN_NAMESPACE_STD
81
77
82
78
struct __empty_completion
Original file line number Diff line number Diff line change @@ -58,10 +58,6 @@ namespace std
58
58
# error <latch> is not supported on this single threaded system
59
59
#endif
60
60
61
- #if _LIBCUDACXX_STD_VER < 11
62
- # error <latch> is requires C++11 or later
63
- #endif
64
-
65
61
_LIBCUDACXX_BEGIN_NAMESPACE_STD
66
62
67
63
# if _LIBCUDACXX_CUDA_ABI_VERSION < 3
Original file line number Diff line number Diff line change @@ -66,10 +66,6 @@ using binary_semaphore = counting_semaphore<1>;
66
66
# error <semaphore> is not supported on this single threaded system
67
67
#endif
68
68
69
- #if _LIBCUDACXX_STD_VER < 11
70
- # error <semaphore> is requires C++11 or later
71
- #endif
72
-
73
69
_LIBCUDACXX_BEGIN_NAMESPACE_STD
74
70
75
71
template <int _Sco, ptrdiff_t __least_max_value>
Original file line number Diff line number Diff line change 11
11
12
12
_LIBCUDACXX_BEGIN_NAMESPACE_STD
13
13
14
- #if !defined(_LIBCUDACXX_HAS_NO_THREAD_CONTENTION_TABLE) && (_LIBCUDACXX_STD_VER >= 11)
14
+ #if !defined(_LIBCUDACXX_HAS_NO_THREAD_CONTENTION_TABLE)
15
15
16
16
__libcpp_contention_t __libcpp_contention_state_[ 256 /* < there's no magic in this number */ ];
17
17
Original file line number Diff line number Diff line change 11
11
12
12
_LIBCUDACXX_BEGIN_NAMESPACE_STD
13
13
14
- #if !defined(_LIBCUDACXX_HAS_NO_TREE_BARRIER) && !defined(_LIBCUDACXX_HAS_NO_THREAD_FAVORITE_BARRIER_INDEX) && (_LIBCUDACXX_STD_VER >= 11)
14
+ #if !defined(_LIBCUDACXX_HAS_NO_TREE_BARRIER) && !defined(_LIBCUDACXX_HAS_NO_THREAD_FAVORITE_BARRIER_INDEX)
15
15
16
16
_LIBCUDACXX_EXPORTED_FROM_ABI
17
17
thread_local ptrdiff_t __libcpp_thread_favorite_barrier_index = 0 ;
You can’t perform that action at this time.
0 commit comments