File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
include/cuda/std/detail/libcxx/include
test/libcudacxx/cuda/atomics Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -257,10 +257,11 @@ using char32_t = unsigned int;
257
257
# define _LIBCUDACXX_HAS_MSVC_ATOMIC_IMPL
258
258
# endif
259
259
260
+ # define _LIBCUDACXX_ATOMIC_UNSAFE_AUTOMATIC_STORAGE
260
261
// Enable bypassing automatic storage checks in atomics when using CTK 12.2 and below and if NDEBUG is defined.
261
- # if _CCCL_CUDACC_BELOW(12, 2) && !defined(NDEBUG)
262
- # define _LIBCUDACXX_ATOMIC_UNSAFE_AUTOMATIC_STORAGE
263
- # endif // _CCCL_CUDACC_BELOW(12, 2)
262
+ // # if _CCCL_CUDACC_BELOW(12, 2) && !defined(NDEBUG)
263
+ // # define _LIBCUDACXX_ATOMIC_UNSAFE_AUTOMATIC_STORAGE
264
+ // # endif // _CCCL_CUDACC_BELOW(12, 2)
264
265
265
266
// CUDA Atomics supersede host atomics in order to insert the host/device dispatch layer
266
267
# if _CCCL_CUDA_COMPILER(NVCC) || _CCCL_COMPILER(NVRTC) || _CCCL_COMPILER(NVHPC) || _CCCL_HAS_CUDA_COMPILER()
Original file line number Diff line number Diff line change @@ -120,11 +120,13 @@ __device__ inline void tests()
120
120
121
121
int main (int arg, char ** argv)
122
122
{
123
+ #if !defined(_LIBCUDACXX_ATOMIC_UNSAFE_AUTOMATIC_STORAGE)
123
124
NV_IF_ELSE_TARGET (
124
125
NV_IS_HOST,
125
126
(cuda_thread_count = 64 ;),
126
127
(tests<uint8_t >(); tests<uint16_t >(); tests<uint32_t >(); tests<uint64_t >(); tests<int8_t >(); tests<int16_t >();
127
128
tests<int32_t >();
128
129
tests<int64_t >();))
130
+ #endif
129
131
return 0 ;
130
132
}
You can’t perform that action at this time.
0 commit comments