From 298cf86ab17867492e9131a772f40da47b50f14d Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Fri, 5 Apr 2024 10:53:55 -0600 Subject: [PATCH] Remove unused packing traits --- cmake/Config.cmake.in | 10 +++++++++- src/KokkosComm_traits.hpp | 12 ------------ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in index 877f3e24..33a42e6a 100644 --- a/cmake/Config.cmake.in +++ b/cmake/Config.cmake.in @@ -1,10 +1,18 @@ @PACKAGE_INIT@ +set(KOKKOSCOMM_ENABLE_MDSPAN "@KOKKOSCOMM_ENABLE_MDSPAN@") +set(KOKKOSCOMM_USE_KOKKOS_MDSPAN "@KOKKOSCOMM_USE_KOKKOS_MDSPAN@") + +include(CMakeFindDependencyMacro) +if(KOKKOSCOMM_ENABLE_MDSPAN AND KOKKOSCOMM_USE_KOKKOS_MDSPAN) + find_dependency(mdspan) +endif() + GET_FILENAME_COMPONENT(KokkosComm_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) INCLUDE("${KokkosComm_CMAKE_DIR}/KokkosCommTargets.cmake") UNSET(KokkosComm_CMAKE_DIR) -include(CMakeFindDependencyMacro) + find_dependency(MPI) find_dependency(Kokkos) diff --git a/src/KokkosComm_traits.hpp b/src/KokkosComm_traits.hpp index 96d232d6..1d5b860a 100644 --- a/src/KokkosComm_traits.hpp +++ b/src/KokkosComm_traits.hpp @@ -49,18 +49,6 @@ struct Traits { static size_t extent(const View &v, const int i) { return v.extent(i); } static size_t stride(const View &v, const int i) { return v.stride(i); } - template - static void pack(const ExecSpace &space, - const non_const_packed_view_type &dst, const View &src) { - Kokkos::deep_copy(space, dst, src); - } - - template - static void unpack(const ExecSpace &space, const View &dst, - const non_const_packed_view_type &src) { - Kokkos::deep_copy(space, dst, src); - } - static constexpr bool is_reference_counted() { return true; } static constexpr size_t rank() { return View::rank; }