Skip to content

Commit

Permalink
fixup ___CUDA_VPTX -> _CUDA_VPTX (#664)
Browse files Browse the repository at this point in the history
* fixup `___CUDA_VPTX` -> `_CUDA_VPTX`

* Fix warning for unused variable in branches that are constexpr disabled.
  • Loading branch information
wmaxey authored Nov 7, 2023
1 parent 591dc78 commit d57851e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ friend class _CUDA_VSTD::__barrier_poll_tester_parity;
auto __bh = reinterpret_cast<_CUDA_VSTD::uint64_t*>(&__barrier);
// Need 2 instructions, can't finish barrier with arrive > 1
if (__update > 1) {
___CUDA_VPTX::mbarrier_arrive_no_complete(__bh, __update - 1);
_CUDA_VPTX::mbarrier_arrive_no_complete(__bh, __update - 1);
}
__token = _CUDA_VPTX::mbarrier_arrive( __bh);
), NV_IS_DEVICE, (
Expand Down Expand Up @@ -1087,8 +1087,8 @@ __completion_mechanism __dispatch_memcpy_async_global_to_shared(_Group const & _
));

NV_IF_TARGET(NV_PROVIDES_SM_80, (
const bool __can_use_async_group = __allowed_completions & uint32_t(__completion_mechanism::__async_group);
if _LIBCUDACXX_CONSTEXPR_AFTER_CXX14 (_Align >= 4) {
const bool __can_use_async_group = __allowed_completions & uint32_t(__completion_mechanism::__async_group);
if (__can_use_async_group) {
__cp_async_shared_global_mechanism<_Align>(__group, __dest_char, __src_char, __size);
return __completion_mechanism::__async_group;
Expand Down

0 comments on commit d57851e

Please sign in to comment.