diff --git a/include/ddc/kokkos_allocator.hpp b/include/ddc/kokkos_allocator.hpp index f58b334b4..2ee29258f 100644 --- a/include/ddc/kokkos_allocator.hpp +++ b/include/ddc/kokkos_allocator.hpp @@ -15,6 +15,9 @@ namespace ddc { template class KokkosAllocator { + // Kokkos natively support alignment for any scalar type that can be represented by the type `std::max_align_t` + static_assert(alignof(T) <= alignof(std::max_align_t), "Alignment not supported"); + public: using value_type = T;