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

Commit

Permalink
Add inline to signal and thread fence
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Aug 16, 2021
1 parent 97ee0d3 commit 5b28bae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libcxx/include/support/atomic/atomic_cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ namespace __host {
#include "atomic_cuda_generated.h"
#include "atomic_cuda_derived.h"

_LIBCUDACXX_INLINE_VISIBILITY
inline constexpr
_LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
bool __cxx_atomic_is_lock_free(size_t __x) {
return __x <= 8;
}

_LIBCUDACXX_INLINE_VISIBILITY
inline
void __cxx_atomic_thread_fence(memory_order __order) {
NV_DISPATCH_TARGET(
NV_IS_DEVICE, (
Expand All @@ -124,6 +124,7 @@ _LIBCUDACXX_INLINE_VISIBILITY
}

_LIBCUDACXX_INLINE_VISIBILITY
inline
void __cxx_atomic_signal_fence(memory_order __order) {
NV_DISPATCH_TARGET(
NV_IS_DEVICE, (
Expand Down

0 comments on commit 5b28bae

Please sign in to comment.