Skip to content

Commit 1c009d2

Browse files
authored
Fix unused variable warning for __can_use_complete_tx (#1547) (#1550)
1 parent ad88810 commit 1c009d2

File tree

1 file changed

+1
-0
lines changed
  • libcudacxx/include/cuda/std/detail/libcxx/include/__cuda

1 file changed

+1
-0
lines changed

libcudacxx/include/cuda/std/detail/libcxx/include/__cuda/barrier.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,7 @@ __completion_mechanism __dispatch_memcpy_async_global_to_shared(_Group const & _
11011101
#if __cccl_ptx_isa >= 800
11021102
NV_IF_TARGET(NV_PROVIDES_SM_90, (
11031103
const bool __can_use_complete_tx = __allowed_completions & uint32_t(__completion_mechanism::__mbarrier_complete_tx);
1104+
_LIBCUDACXX_UNUSED_VAR(__can_use_complete_tx);
11041105
_LIBCUDACXX_DEBUG_ASSERT(__can_use_complete_tx == (nullptr != __bar_handle), "Pass non-null bar_handle if and only if can_use_complete_tx.");
11051106
if _LIBCUDACXX_CONSTEXPR_AFTER_CXX14 (_Align >= 16) {
11061107
if (__can_use_complete_tx && __isShared(__bar_handle)) {

0 commit comments

Comments
 (0)