Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Move the emission of atomic errors on unsupported platforms to <atomic> #303

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/cuda/std/detail/libcxx/include/__config
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ extern "C" _LIBCUDACXX_FUNC_VIS void __sanitizer_annotate_contiguous_container(
# elif defined(_LIBCUDACXX_WIN32API)
# define _LIBCUDACXX_HAS_THREAD_API_WIN32
# else
# error "No thread API"
# define _LIBCUDACXX_UNSUPPORTED_THREAD_API
# endif // _LIBCUDACXX_HAS_THREAD_API
#endif // _LIBCUDACXX_HAS_NO_THREADS

Expand Down
3 changes: 3 additions & 0 deletions include/cuda/std/detail/libcxx/include/atomic
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ void atomic_signal_fence(memory_order m) noexcept;
#ifdef _LIBCUDACXX_HAS_NO_ATOMIC_HEADER
# error <atomic> is not implemented
#endif
#ifdef _LIBCUDACXX_UNSUPPORTED_THREAD_API
# error "<atomic> is not supported on this system"
#endif
#ifdef kill_dependency
# error C++ standard library is incompatible with <stdatomic.h>
#endif
Expand Down