Skip to content

Commit c58d0c7

Browse files
authored
Avoid padding warning with MSVC (#3077)
Addresses nvbug4998963
1 parent 1fae982 commit c58d0c7

File tree

1 file changed

+5
-0
lines changed
  • libcudacxx/include/cuda/std/__barrier

1 file changed

+5
-0
lines changed

libcudacxx/include/cuda/std/__barrier/barrier.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636

3737
_LIBCUDACXX_BEGIN_NAMESPACE_STD
3838

39+
_CCCL_DIAG_PUSH
40+
_CCCL_DIAG_SUPPRESS_MSVC(4324) // structure was padded due to alignment specifier
41+
3942
template <class _CompletionF, thread_scope _Sco = thread_scope_system>
4043
class __barrier_base
4144
{
@@ -117,6 +120,8 @@ class __barrier_base
117120
}
118121
};
119122

123+
_CCCL_DIAG_POP
124+
120125
template <thread_scope _Sco>
121126
class __barrier_base<__empty_completion, _Sco>
122127
{

0 commit comments

Comments
 (0)