//@HEADER // ************************************************************************ // // Kokkos v. 4.0 // Copyright (2022) 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. // // Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. // See https://kokkos.org/LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //@HEADER #ifndef KOKKOS_CORE_EXP_INTEROP_HPP #define KOKKOS_CORE_EXP_INTEROP_HPP #ifndef KOKKOS_IMPL_PUBLIC_INCLUDE #define KOKKOS_IMPL_PUBLIC_INCLUDE #define KOKKOS_IMPL_PUBLIC_INCLUDE_NOTDEFINED_INTEROP #endif #include #include #include #include #include #include namespace Kokkos { namespace Impl { // ------------------------------------------------------------------ // // this is used to convert // Kokkos::Device to MemSpace // template struct device_memory_space { using type = Tp; }; template struct device_memory_space> { using type = MemT; }; template using device_memory_space_t = typename device_memory_space::type; // ------------------------------------------------------------------ // // this is the impl version which takes a view and converts to python // view type // template struct python_view_type_impl; template