Skip to content

Conversation

awgu
Copy link
Collaborator

@awgu awgu commented Mar 7, 2023

Stack from ghstack (oldest at bottom):

For a tensor on GPU, moving it once to CPU and operating on it on CPU is faster than moving it element by element from CPU to GPU. This is a follow-up to also move world_indices.

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 7, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/96220

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 9e5e63b:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the release notes: distributed (fsdp) release notes category label Mar 7, 2023
awgu pushed a commit that referenced this pull request Mar 7, 2023
ghstack-source-id: 93b4438
Pull Request resolved: #96220
@awgu awgu added topic: improvements topic category ciflow/trunk Trigger trunk jobs on your pull request labels Mar 7, 2023
@awgu awgu marked this pull request as ready for review March 7, 2023 21:30
@awgu
Copy link
Collaborator Author

awgu commented Mar 7, 2023

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
For a tensor on GPU, moving it once to CPU and operating on it on CPU is faster than moving it element by element from CPU to GPU. This is a follow-up to also move `world_indices`.
Pull Request resolved: pytorch/pytorch#96220
Approved by: https://github.com/zhaojuanmao
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
For a tensor on GPU, moving it once to CPU and operating on it on CPU is faster than moving it element by element from CPU to GPU. This is a follow-up to also move `world_indices`.
Pull Request resolved: pytorch/pytorch#96220
Approved by: https://github.com/zhaojuanmao
ydwu4 added a commit to ydwu4/pytorch that referenced this pull request Mar 13, 2023
For a tensor on GPU, moving it once to CPU and operating on it on CPU is faster than moving it element by element from CPU to GPU. This is a follow-up to also move `world_indices`.
Pull Request resolved: pytorch#96220
Approved by: https://github.com/zhaojuanmao
@facebook-github-bot facebook-github-bot deleted the gh/awgu/343/head branch June 8, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: distributed (fsdp) release notes category topic: improvements topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants