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

mdspan_to_view needs to support transposed layout #175

Open
fnrizzi opened this issue Apr 20, 2022 · 1 comment
Open

mdspan_to_view needs to support transposed layout #175

fnrizzi opened this issue Apr 20, 2022 · 1 comment

Comments

@fnrizzi
Copy link
Contributor

fnrizzi commented Apr 20, 2022

No description provided.

@mhoemmen
Copy link
Contributor

There are a few different options. The easiest thing might be just to write a Kokkos::View adapter for arbitrary mdspan layouts (and accessors!). It could just wrap the mdspan (storing it by value) and defer to its array access operator(). That would solve the problem generally. You could then specialize for specific layouts or accessors if performance warrants the effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants