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

Kokkos::OffsetView missing constructor which takes pointer #2247

Closed
crtrott opened this issue Aug 26, 2019 · 0 comments
Closed

Kokkos::OffsetView missing constructor which takes pointer #2247

crtrott opened this issue Aug 26, 2019 · 0 comments
Assignees
Labels
Enhancement Improve existing capability; will potentially require voting

Comments

@crtrott
Copy link
Member

crtrott commented Aug 26, 2019

We need a constructor to create a OffsetVIew around preallocated memory.

double* ptr = ...
Kokkos::Experimental::OffsetView<double*> a(ptr,{begin},{end});

Should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improve existing capability; will potentially require voting
Projects
No open projects
View cleanup
Awaiting triage
Development

No branches or pull requests

4 participants