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

Add non-member Kokkos::resize/realloc for DualView #2170

Closed
AndrewGaspar opened this issue Jun 5, 2019 · 4 comments
Closed

Add non-member Kokkos::resize/realloc for DualView #2170

AndrewGaspar opened this issue Jun 5, 2019 · 4 comments
Assignees
Labels
Enhancement Improve existing capability; will potentially require voting

Comments

@AndrewGaspar
Copy link
Contributor

It would be nice if there were non-member Kokkos::resize and realloc functions to match Kokkos::View.

Slack discussion:

Andrew Gaspar [10:50 AM]
Could we get an overload of Kokkos::resize for DualView?

crtrott [10:54 AM]
It doesnt exist?

Andrew Gaspar [10:54 AM]
There’s member resize

crtrott [10:54 AM]
Oh maybe it got a member functiin
Yeah

Andrew Gaspar [10:55 AM]
but it would be nice for a couple reasons if it was non-member resize like View:

  1. If you change a View to a DualView, you don’t have to change any resizes
  2. Visually consistent in the code

crtrott [10:56 AM]
Agreed

Andrew Gaspar [10:56 AM]
I can file an issue

crtrott [10:56 AM]
Jup do that

Andrew Gaspar [10:57 AM]
I can see about providing the change myself

crtrott [10:57 AM]
Also realloc

@dsunder
Copy link
Contributor

dsunder commented Jun 5, 2019 via email

@stanmoore1
Copy link
Contributor

Yes resize preserves the existing data of the view while realloc does not.

@crtrott crtrott added the Enhancement Improve existing capability; will potentially require voting label Jun 5, 2019
@dhollman dhollman added this to To do in Milestone: Release 3.1 via automation Sep 3, 2019
@dhollman dhollman added this to the Tentative 3.1 Release milestone Sep 3, 2019
@dhollman dhollman added this to To do (soon) in Developer: DSHOLLM Sep 30, 2019
@dhollman dhollman moved this from To do (soon) to In progress in Developer: DSHOLLM Sep 30, 2019
@dhollman dhollman moved this from To do to In progress in Milestone: Release 3.1 Sep 30, 2019
@dhollman dhollman added the [WIP] label Sep 30, 2019
@dhollman
Copy link

@AndrewGaspar does PR #2408 address this?

@dhollman dhollman moved this from In progress to Needs Tests in Developer: DSHOLLM Sep 30, 2019
@AndrewGaspar
Copy link
Contributor Author

Looks right.

@janciesko janciesko assigned janciesko and unassigned janciesko Oct 25, 2019
@crtrott crtrott added InDevelop and removed [WIP] labels Mar 1, 2020
@crtrott crtrott moved this from In progress to Done in Milestone: Release 3.1 Mar 10, 2020
@crtrott crtrott closed this as completed Apr 14, 2020
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
Development

No branches or pull requests

6 participants