Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View: HostMirror and host_mirror_type aliases seem redundant (which one do we kill?) #6996

Open
romintomasetti opened this issue May 8, 2024 · 1 comment
Labels
Deprecate Items to be deprecated Question For Kokkos internal and external contributors and users

Comments

@romintomasetti
Copy link
Contributor

Summary

The alias host_mirror_type defined in

using host_mirror_type =
View<typename traits::non_const_data_type, typename traits::array_layout,
typename traits::host_mirror_space, typename traits::hooks_policy>;
seems redundant with HostMirror
using HostMirror =
View<typename traits::non_const_data_type, typename traits::array_layout,
Device<DefaultHostExecutionSpace,
typename traits::host_mirror_space::memory_space>,
typename traits::hooks_policy>;

The main difference is that one is using the host_mirror_space, the other creates a Kokkos::Device.

Which alias should we deprecate ?

Investigations

The alias host_mirror_type is used 2 times in Kokkos and 9 times in Trilinos. It is not mentioned in the documentation, but HostMirror is (https://kokkos.org/kokkos-core-wiki/API/core/view/view.html#_CPPv410HostMirror).

Suggestion

Deprecate host_mirror_type, see who complains.

@dalg24
Copy link
Member

dalg24 commented May 8, 2024

HostMirror is the only one mentioned in the doc and it is all over our teaching material so it is clear if we cannot get rid of it.
We could attempt to deprecate the host_mirror_type member as you suggest. I don't feel too strongly about it.

@ajpowelsnl ajpowelsnl added Deprecate Items to be deprecated Question For Kokkos internal and external contributors and users labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Items to be deprecated Question For Kokkos internal and external contributors and users
Projects
None yet
Development

No branches or pull requests

3 participants