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 tensor copy operations with region support #332

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Crydsch
Copy link
Contributor

@Crydsch Crydsch commented Aug 26, 2023

This PR adds the operations OpTensorCopyRegion, OpTensorSyncRegionDevice and OpTensorSyncRegionLocal.
They behave similar to their non Region counterparts, but support copying only regions of a tensor.

I have also added a Test, illustrating their use.
Each tensor is accompanied by a region (src, dst, size) to be copied.
For the two sync operations this relates to each given tensor itself.
For the copy operation this relates to the source tensor.

It is based on PR #329 and PR #331 so their commits are currently included as well.
If they get merged I can rebase this PR.

Signed-off-by: crydsch <crydsch@lph.zone>
Signed-off-by: crydsch <crydsch@lph.zone>
Signed-off-by: crydsch <crydsch@lph.zone>
Signed-off-by: crydsch <crydsch@lph.zone>
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.

1 participant