KEMBAR78
[foreach][BE] cleaning up MultiTensorApply.cuh by janeyx99 · Pull Request #110228 · pytorch/pytorch · GitHub
Skip to content

Conversation

@janeyx99
Copy link
Contributor

@janeyx99 janeyx99 commented Sep 28, 2023

Followup edits to #109402 as suggested by @r-barnes

cc @crcrpar

Stack from ghstack (oldest at bottom):

@pytorch-bot pytorch-bot bot added the release notes: cuda release notes category label Sep 28, 2023
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 28, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit ec3782c with merge base 7f57373 (image):
💚 Looks good so far! There are no failures yet. 💚

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

janeyx99 added a commit that referenced this pull request Sep 28, 2023
ghstack-source-id: 6ca65a7
Pull Request resolved: #110228
@janeyx99 janeyx99 requested review from albanD and r-barnes September 28, 2023 16:29
@janeyx99 janeyx99 added release notes: foreach_frontend release notes category topic: not user facing topic category labels Sep 28, 2023
Copy link
Collaborator

@crcrpar crcrpar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question to check my understanding

Comment on lines +160 to +161
const auto numel = tensor_lists[0][t].numel();
const auto chunks = numel / kChunkSize + (numel % kChunkSize != 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

numel is int64_t so chunks is also, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

numel is a size_t i believe? this change is to prevent overflow (even tho overflow is likely unlikely here)

@albanD albanD removed their request for review September 29, 2023 08:28
@janeyx99
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 29, 2023
@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

@facebook-github-bot facebook-github-bot deleted the gh/janeyx99/93/head branch October 3, 2023 14:23
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: cuda release notes category release notes: foreach_frontend release notes category topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants