Skip to content

Commit

Permalink
Remove unused packing traits
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Apr 10, 2024
1 parent d35dc30 commit 298cf86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
10 changes: 9 additions & 1 deletion cmake/Config.cmake.in
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
12 changes: 0 additions & 12 deletions src/KokkosComm_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,6 @@ struct Traits<View> {
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 <typename ExecSpace>
static void pack(const ExecSpace &space,
const non_const_packed_view_type &dst, const View &src) {
Kokkos::deep_copy(space, dst, src);
}

template <typename ExecSpace>
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; }
Expand Down

0 comments on commit 298cf86

Please sign in to comment.