Skip to content

move c10::overflows to its own header#140564

Closed
swolchok wants to merge 3 commits intogh/swolchok/691/basefrom
gh/swolchok/691/head
Closed

move c10::overflows to its own header#140564
swolchok wants to merge 3 commits intogh/swolchok/691/basefrom
gh/swolchok/691/head

Conversation

@swolchok
Copy link
Copy Markdown
Contributor

@swolchok swolchok commented Nov 13, 2024

Working on moving complex<Half> to complex.h instead of Half.h; this depends on complex and isn't used particularly widely.

Differential Revision: [D65888038](https://our.internmc.facebook.com/intern/diff/D65888038/)

[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Nov 13, 2024

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 0a9bc01 with merge base 891ba2e (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D65888038

@swolchok
Copy link
Copy Markdown
Contributor Author

are we prevented from doing this because it's bc-breaking? (anyone who does use this will have to #include <c10/util/overflows.h>) :(

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 14, 2024
Working on moving `complex<Half>` to complex.h instead of Half.h; this depends on complex and isn't used particularly widely.

Differential Revision: [D65888038](https://our.internmc.facebook.com/intern/diff/D65888038/)

cc ezyang gchanan

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D65888038

Working on moving `complex<Half>` to complex.h instead of Half.h; this depends on complex and isn't used particularly widely.

Differential Revision: [D65888038](https://our.internmc.facebook.com/intern/diff/D65888038/)

cc ezyang gchanan

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D65888038

pytorchmergebot pushed a commit that referenced this pull request Nov 18, 2024
Executing on old TODO on the way to sharing Half.h with ExecuTorch.

Differential Revision: [D65888037](https://our.internmc.facebook.com/intern/diff/D65888037/)
Pull Request resolved: #140565
Approved by: https://github.com/ezyang, https://github.com/malfet
ghstack dependencies: #140564
pytorchmergebot pushed a commit that referenced this pull request Nov 18, 2024
We want to use Half/BFloat16 in ExecuTorch to support shared kernel code. They will need to be used in ExecuTorch core, so they can't have streams. This diff introduces a macro to gate the stream code off.

Differential Revision: [D65888035](https://our.internmc.facebook.com/intern/diff/D65888035/)
Pull Request resolved: #140566
Approved by: https://github.com/ezyang, https://github.com/malfet
ghstack dependencies: #140564, #140565
pytorchmergebot pushed a commit that referenced this pull request Nov 18, 2024
Accessing the inactive member of a union is undefined behavior. Fortunately, we have c10::bit_cast.

Differential Revision: [D65888680](https://our.internmc.facebook.com/intern/diff/D65888680/)
Pull Request resolved: #140567
Approved by: https://github.com/Skylion007, https://github.com/malfet
ghstack dependencies: #140564, #140565, #140566
pytorchmergebot pushed a commit that referenced this pull request Nov 18, 2024
This was added in pytorch/executorch#1789 . I'm working on sharing Half.h with ExecuTorch, and this is a missing feature.

Differential Revision: [D65949409](https://our.internmc.facebook.com/intern/diff/D65949409/)
Pull Request resolved: #140720
Approved by: https://github.com/malfet
ghstack dependencies: #140564, #140565, #140566, #140567
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D65888038

pytorchmergebot pushed a commit that referenced this pull request Nov 19, 2024
It passed PyTorch CI, but internally we saw failures from this.

Differential Revision: [D66137897](https://our.internmc.facebook.com/intern/diff/D66137897/)
Pull Request resolved: #140994
Approved by: https://github.com/malfet
ghstack dependencies: #140564, #140565, #140566, #140567, #140720
pytorchmergebot pushed a commit that referenced this pull request Nov 19, 2024
Make what we're doing as obvious as possible to the compiler.

Differential Revision: [D66108811](https://our.internmc.facebook.com/intern/diff/D66108811/)
Pull Request resolved: #141035
Approved by: https://github.com/Skylion007, https://github.com/ezyang, https://github.com/malfet
ghstack dependencies: #140564, #140565, #140566, #140567, #140720, #140994
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
Working on moving `complex<Half>` to complex.h instead of Half.h; this depends on complex and isn't used particularly widely.

Differential Revision: [D65888038](https://our.internmc.facebook.com/intern/diff/D65888038/)

Pull Request resolved: pytorch#140564
Approved by: https://github.com/ezyang, https://github.com/Skylion007, https://github.com/malfet
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
Executing on old TODO on the way to sharing Half.h with ExecuTorch.

Differential Revision: [D65888037](https://our.internmc.facebook.com/intern/diff/D65888037/)
Pull Request resolved: pytorch#140565
Approved by: https://github.com/ezyang, https://github.com/malfet
ghstack dependencies: pytorch#140564
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
We want to use Half/BFloat16 in ExecuTorch to support shared kernel code. They will need to be used in ExecuTorch core, so they can't have streams. This diff introduces a macro to gate the stream code off.

Differential Revision: [D65888035](https://our.internmc.facebook.com/intern/diff/D65888035/)
Pull Request resolved: pytorch#140566
Approved by: https://github.com/ezyang, https://github.com/malfet
ghstack dependencies: pytorch#140564, pytorch#140565
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
…140567)

Accessing the inactive member of a union is undefined behavior. Fortunately, we have c10::bit_cast.

Differential Revision: [D65888680](https://our.internmc.facebook.com/intern/diff/D65888680/)
Pull Request resolved: pytorch#140567
Approved by: https://github.com/Skylion007, https://github.com/malfet
ghstack dependencies: pytorch#140564, pytorch#140565, pytorch#140566
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
This was added in pytorch/executorch#1789 . I'm working on sharing Half.h with ExecuTorch, and this is a missing feature.

Differential Revision: [D65949409](https://our.internmc.facebook.com/intern/diff/D65949409/)
Pull Request resolved: pytorch#140720
Approved by: https://github.com/malfet
ghstack dependencies: pytorch#140564, pytorch#140565, pytorch#140566, pytorch#140567
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
It passed PyTorch CI, but internally we saw failures from this.

Differential Revision: [D66137897](https://our.internmc.facebook.com/intern/diff/D66137897/)
Pull Request resolved: pytorch#140994
Approved by: https://github.com/malfet
ghstack dependencies: pytorch#140564, pytorch#140565, pytorch#140566, pytorch#140567, pytorch#140720
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
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 fb-exported Merged module: bc-breaking Related to a BC-breaking change topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants