Skip to content

Commit

Permalink
#365: fix size 0 kokkos arrays in Kokkos < 4.4 case
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Sep 25, 2024
1 parent b785ba0 commit 2b69494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkpoint/container/kokkos_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace checkpoint {
template <typename Serializer, typename T, size_t N, class Proxy>
void serialize(Serializer& s, Kokkos::Array<T, N, Proxy>& array) {
static_assert(std::is_void_v< Proxy >, "Magistrate does not support serializing Kokkos Arrays with proxies");
dispatch::serializeArray(s, &array[0], array.size());
dispatch::serializeArray(s, array.data(), array.size());
}
#else
template <typename Serializer, typename T, size_t N>
Expand Down

0 comments on commit 2b69494

Please sign in to comment.