From 7cc7de377c1845c52291e6533cba4b329388c48d Mon Sep 17 00:00:00 2001 From: Paul Zehner Date: Tue, 12 Mar 2024 17:12:14 +0100 Subject: [PATCH] Rationalize which space to pass to MirrorViewType --- core/src/Kokkos_CopyViews.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/src/Kokkos_CopyViews.hpp b/core/src/Kokkos_CopyViews.hpp index 0b8710f363d..daefe1d3ce0 100644 --- a/core/src/Kokkos_CopyViews.hpp +++ b/core/src/Kokkos_CopyViews.hpp @@ -3489,7 +3489,7 @@ inline auto create_mirror(const Kokkos::View& src, // get desired space using space_type = std::conditional_t::has_memory_space, typename Impl::ViewCtorProp::memory_space, - DefaultHostExecutionSpace>; + DefaultHostExecutionSpace::memory_space>; using mirror_view_type = typename Impl::MirrorViewType; @@ -3545,7 +3545,7 @@ inline auto create_mirror_view(const Kokkos::View& src, // get desired space using space_type = std::conditional_t::has_memory_space, typename Impl::ViewCtorProp::memory_space, - DefaultHostExecutionSpace>; + DefaultHostExecutionSpace::memory_space>; using mirror_view_type = typename Impl::MirrorViewType; @@ -3626,7 +3626,7 @@ auto create_mirror_view_and_copy( // get desired space using space_type = std::conditional_t; + DefaultHostExecutionSpace::memory_space>; using mirror_view_type = typename Impl::MirrorViewType; @@ -3638,7 +3638,6 @@ auto create_mirror_view_and_copy( return src; } else { - using nonconst_mirror = typename mirror_view_type::dest_view_type; auto arg_prop_copy = Impl::with_properties_if_unset( arg_prop, std::string{}, WithoutInitializing,