From 88228efbb049c57bee16b89257da97d93ed6a5c2 Mon Sep 17 00:00:00 2001 From: William Hicks Date: Thu, 10 Nov 2022 17:52:51 -0500 Subject: [PATCH] Remove make_mdspan template for memory_type enum (#1005) This prevents requiring full specification for all template parameters in downstream `make_mdspan` usage. A more complete discussion of how we want to use `memory_type` in the public API can be deferred to a later PR. Authors: - William Hicks (https://github.com/wphicks) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: https://github.com/rapidsai/raft/pull/1005 --- cpp/include/raft/core/mdspan.hpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/cpp/include/raft/core/mdspan.hpp b/cpp/include/raft/core/mdspan.hpp index db131ff6fa..e7a9b256cb 100644 --- a/cpp/include/raft/core/mdspan.hpp +++ b/cpp/include/raft/core/mdspan.hpp @@ -193,29 +193,6 @@ auto make_mdspan(ElementType* ptr, extents exts) return mdspan{ptr, exts}; } -/** - * @brief Create a raft::mdspan - * @tparam ElementType the data type of the matrix elements - * @tparam IndexType the index type of the extents - * @tparam LayoutPolicy policy for strides and layout ordering - * @tparam MemType the raft::memory_type for where the data are stored - * @param ptr Pointer to the data - * @param exts dimensionality of the array (series of integers) - * @return raft::mdspan - */ -template -auto make_mdspan(ElementType* ptr, extents exts) -{ - using accessor_type = - host_device_accessor, MemType>; - - return mdspan{ptr, exts}; -} - /** * @brief Create raft::extents to specify dimensionality *