-
Notifications
You must be signed in to change notification settings - Fork 407
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
Add Kokkos::create_mirror[_view] WithoutInitializing for Container types #4805
Conversation
Thanks @masterleinad! |
064267e
to
96bffd4
Compare
typename Impl::MirrorDRVType<Space, T, P...>::view_type create_mirror( | ||
const Space&, const Kokkos::DynRankView<T, P...>& src) { | ||
return typename Impl::MirrorDRVType<Space, T, P...>::view_type( | ||
src.label(), Impl::reconstructLayout(src.layout(), src.rank())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this pass the space argument to the view construction? I guess it would be a behavior change with regards to syncing or?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space
is (allowed to be) a memory space. We can discuss if we want to specialize for the case that an execution space is provided but I would prefer to do that uniformly with the other create_mirror
overloads in a separate pull request
Related to #4794, in continuation of #4486.
StaticCrsGraph
also providescreate_mirror[_view]
but with somewhat different semantics so I decided to omit it here.