Skip to content

Commit

Permalink
Split into the different threading mechanisms
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Oct 4, 2024
1 parent 48b7ab0 commit 167e539
Show file tree
Hide file tree
Showing 9 changed files with 564 additions and 497 deletions.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/__atomic/wait/notify_wait.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ _LIBCUDACXX_HIDE_FROM_ABI void __atomic_wait(
}
if (__i < 12)
{
__libcpp_thread_yield_processor();
_CUDA_VSTD::__libcpp_thread_yield_processor();
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/__atomic/wait/polling.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ template <typename _Tp, typename _Sco>
_CCCL_HOST_DEVICE void __atomic_try_wait_slow_fallback(
_Tp const volatile* __a, __atomic_underlying_remove_cv_t<_Tp> __val, memory_order __order, _Sco)
{
__libcpp_thread_poll_with_backoff(__atomic_poll_tester<_Tp, _Sco>(__a, __val, __order));
_CUDA_VSTD::__libcpp_thread_poll_with_backoff(__atomic_poll_tester<_Tp, _Sco>(__a, __val, __order));
}

_LIBCUDACXX_END_NAMESPACE_STD
Expand Down
Loading

0 comments on commit 167e539

Please sign in to comment.