Skip to content

Conversation

@jpsamaroo
Copy link
Member

From jules.google.com

This commit adds documentation for the `move` and `move!` functions.

- `move` (3-argument) is documented in `docs/src/data-management.md`.
  This section explains its role in data movement for task arguments,
  including `Chunk` unwrapping, and notes that custom implementations
  are usually unnecessary.

- `move!` (5-argument) is documented in `docs/src/datadeps.md`.
  This section explains its use in Datadeps for in-place operations,
  how it handles `Chunk`s, and when custom implementations might be
  needed (though often not for `AbstractArray` types supporting
  `copyto!`).
This commit corrects the function signatures for `Dagger.move` and
`Dagger.move!` in the documentation and adds illustrative examples
for custom implementations.

- `Dagger.move(from_proc::Dagger.Processor, to_proc::Dagger.Processor, x)`
  signature updated in `data-management.md`.
- `Dagger.move!(dep_mod, from_space::Dagger.MemorySpace, to_space::Dagger.MemorySpace, from, to)`
  signature updated in `datadeps.md`.
- Examples for both functions demonstrate how users might define custom
  data movement logic for their types.
@jpsamaroo jpsamaroo merged commit 348b2a5 into master Jun 23, 2025
3 of 4 checks passed
@jpsamaroo jpsamaroo deleted the jules/docs-move-movebang branch June 23, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants