From 05480fe2628940354eba815f545cf89a631376b4 Mon Sep 17 00:00:00 2001 From: Damien L-G Date: Mon, 24 Jan 2022 10:38:28 -0500 Subject: [PATCH] Remove unused KokkosKernels::Impl::kk_is_gpu_mem_space trait and header file --- src/common/KokkosKernels_MemSpaceUtils.hpp | 78 ---------------------- src/sparse/KokkosSparse_spmv.hpp | 1 - 2 files changed, 79 deletions(-) delete mode 100644 src/common/KokkosKernels_MemSpaceUtils.hpp diff --git a/src/common/KokkosKernels_MemSpaceUtils.hpp b/src/common/KokkosKernels_MemSpaceUtils.hpp deleted file mode 100644 index 1185b5a121..0000000000 --- a/src/common/KokkosKernels_MemSpaceUtils.hpp +++ /dev/null @@ -1,78 +0,0 @@ -/* -//@HEADER -// ************************************************************************ -// -// Kokkos v. 3.0 -// Copyright (2020) National Technology & Engineering -// Solutions of Sandia, LLC (NTESS). -// -// Under the terms of Contract DE-NA0003525 with NTESS, -// the U.S. Government retains certain rights in this software. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// 1. Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// 2. Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// -// 3. Neither the name of the Corporation nor the names of the -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY NTESS "AS IS" AND ANY -// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NTESS OR THE -// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// -// Questions? Contact Siva Rajamanickam (srajama@sandia.gov) -// -// ************************************************************************ -//@HEADER -*/ - -#ifndef _KOKKOSKERNELSUTILSMEMSPACEUTILS_HPP -#define _KOKKOSKERNELSUTILSMEMSPACEUTILS_HPP - -#include "Kokkos_Cuda.hpp" - -namespace KokkosKernels { -namespace Impl { - -template -constexpr KOKKOS_INLINE_FUNCTION bool kk_is_gpu_mem_space() { - return false; -} - -#ifdef KOKKOS_ENABLE_CUDA -template <> -constexpr KOKKOS_INLINE_FUNCTION bool kk_is_gpu_mem_space() { - return true; -} -template <> -constexpr KOKKOS_INLINE_FUNCTION bool -kk_is_gpu_mem_space() { - return true; -} -template <> -constexpr KOKKOS_INLINE_FUNCTION bool -kk_is_gpu_mem_space() { - return true; -} -#endif - -} // namespace Impl -} // namespace KokkosKernels - -#endif diff --git a/src/sparse/KokkosSparse_spmv.hpp b/src/sparse/KokkosSparse_spmv.hpp index 8615145a6d..52b3f1ae95 100644 --- a/src/sparse/KokkosSparse_spmv.hpp +++ b/src/sparse/KokkosSparse_spmv.hpp @@ -57,7 +57,6 @@ #include "KokkosSparse_BlockCrsMatrix.hpp" #include "KokkosBlas1_scal.hpp" #include "KokkosKernels_Utils.hpp" -#include "KokkosKernels_MemSpaceUtils.hpp" #include "KokkosKernels_Error.hpp" namespace KokkosSparse {