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

Commit

Permalink
Rename CUDA scopes header to atomic_scopes.h
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Sep 28, 2021
1 parent 6f49075 commit 21563c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libcxx/include/atomic
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ __cxx_atomic_assign_volatile(_Tp volatile& __a_value, _Tv volatile const& __val)
// Headers are wrapped like so: (cuda::std::|std::)detail
namespace __detail {
#if defined(_LIBCUDACXX_HAS_CUDA_ATOMIC_EXT)
# include "support/atomic/atomic_cuda_scopes.h"
# include "support/atomic/atomic_scopes.h"
#endif

#if defined(_LIBCUDACXX_HAS_CUDA_ATOMIC_IMPL)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef __LIBCUDACXX_ATOMIC_SCOPES_H
#define __LIBCUDACXX_ATOMIC_SCOPES_H

#ifndef __ATOMIC_BLOCK
#define __ATOMIC_SYSTEM 0 // 0 indicates default
#define __ATOMIC_DEVICE 1
Expand Down Expand Up @@ -39,3 +42,5 @@ _LIBCUDACXX_INLINE_VISIBILITY auto constexpr __scope_tag() ->
typename __scope_enum_to_tag<_Scope>::type {
return typename __scope_enum_to_tag<_Scope>::type();
}

#endif // __LIBCUDACXX_ATOMIC_SCOPES_H

0 comments on commit 21563c7

Please sign in to comment.