Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Cleanup ScatterValue#8761

Merged
crtrott merged 5 commits intokokkos:developfrom
masterleinad:cleanup_scatter_value
Feb 5, 2026
Merged

Cleanup ScatterValue#8761
crtrott merged 5 commits intokokkos:developfrom
masterleinad:cleanup_scatter_value

Conversation

@masterleinad
Copy link
Contributor

Split-up from #8689.
ScatterValue wraps a reference and the current implementation only implements a move constructor out of all the special member functions. This move constructor behaves like a copy constructor. Thus, the moved from object still impacts the moved-to object which appears unintended. Instead, this pull request proposes to delete the copy constructor and copy assignment operator implying that the move constructor and move assignment operator are also implicitly deleted.

We do some more cleanup by removing the (unused) join operator as was already mentioned in a comment.

Drive-by: Remove ScatterAccess's default destructor.

Signed-off-by: Daniel Arndt <[email protected]>
Signed-off-by: Daniel Arndt <[email protected]>
@masterleinad masterleinad marked this pull request as ready for review December 18, 2025 15:43
@masterleinad masterleinad requested a review from crtrott January 5, 2026 14:11
Signed-off-by: Daniel Arndt <[email protected]>
Signed-off-by: Daniel Arndt <[email protected]>
Signed-off-by: Daniel Arndt <[email protected]>
@crtrott crtrott merged commit d9449cf into kokkos:develop Feb 5, 2026
43 of 45 checks passed
@seyonglee seyonglee mentioned this pull request Feb 17, 2026
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

Successfully merging this pull request may close these issues.

4 participants

Comments