Skip to content

Commit

Permalink
Update libcudacxx/include/cuda/std/__memory/assume_aligned.h
Browse files Browse the repository at this point in the history
Co-authored-by: Bernhard Manfred Gruber <bernhardmgruber@gmail.com>
  • Loading branch information
fbusato and bernhardmgruber authored Mar 5, 2025
1 parent 1059e01 commit a4faccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/__memory/assume_aligned.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ template <size_t _Align, class _Tp>
_CCCL_NODISCARD _LIBCUDACXX_HIDE_FROM_ABI constexpr _Tp* assume_aligned(_Tp* __ptr) noexcept
{
static_assert(_CUDA_VSTD::has_single_bit(_Align), "std::assume_aligned requires the alignment to be a power of 2");
static_assert(_Align >= alignof(_Tp), "Alignment must be greater than or equal to the size of the input type");
static_assert(_Align >= alignof(_Tp), "Alignment must be greater than or equal to the alignment of the input type");
#if !defined(_CCCL_BUILTIN_IS_CONSTANT_EVALUATED)
return __ptr;
#else
Expand Down

0 comments on commit a4faccd

Please sign in to comment.