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,