Skip to content

Commit

Permalink
Disable [[no_unique_address]] for clang
Browse files Browse the repository at this point in the history
We are experience data corruption when passing structs with nested `[[no_unique_address]]` to kernels.

See nvbug4934171
  • Loading branch information
miscco committed Oct 29, 2024
1 parent a237cc7 commit 13106ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcudacxx/include/cuda/std/__mdspan/compressed_pair.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct __compressed_pair
{}
};

# ifdef _CCCL_HAS_NO_ATTRIBUTE_NO_UNIQUE_ADDRESS
# if defined(_CCCL_HAS_NO_ATTRIBUTE_NO_UNIQUE_ADDRESS) || defined(_CCCL_COMPILER_CLANG)

// First empty.
template <class _Tp, class _Up>
Expand Down Expand Up @@ -245,7 +245,7 @@ struct __compressed_pair<
{}
};

# endif // !_CCCL_HAS_NO_ATTRIBUTE_NO_UNIQUE_ADDRESS
# endif // !_CCCL_HAS_NO_ATTRIBUTE_NO_UNIQUE_ADDRESS || _CCCL_COMPILER_CLANG

} // end namespace __detail

Expand Down

0 comments on commit 13106ac

Please sign in to comment.