08ff11e9d0
initialize device when pinning memory on this device, short circuit i… ( #145752 )
...
…s_pinned if device is not initialized
Do not land
RFC
potential fix for #144687
Now `.is_pinned(device="cuda")` does not initialize device and thus doesn't poison the fork (but it complains about `device` arg being deprecated). To not need `device=` arg we'd need to fix get_accelerator to not initialize device.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/145752
Approved by: https://github.com/albanD
Co-authored-by: albanD <albandes@fb.com >
2025-01-30 21:37:29 +00:00
383d9e3de6
[4/N] Fix cppcoreguidelines-special-member-functions warnings ( #139027 )
...
Follows #138796
Pull Request resolved: https://github.com/pytorch/pytorch/pull/139027
Approved by: https://github.com/ezyang
2024-10-29 00:18:18 +00:00
d428d81c7f
Remove some pre-cpp17 stuff ( #138410 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/138410
Approved by: https://github.com/Skylion007
2024-10-23 00:38:03 +00:00
7663ffb673
[10/N] Fixes clang-tidy warnings in c10/util/*.h ( #116326 )
...
Still a continued work for clean up c10/util/*.h
Pull Request resolved: https://github.com/pytorch/pytorch/pull/116326
Approved by: https://github.com/Skylion007
2023-12-23 04:59:55 +00:00
cadb566bbc
[RELAND] [ATen] Update pre-compiled header ( #108149 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108149
Approved by: https://github.com/albanD
2023-09-20 20:38:30 +00:00
8caa89917b
Revert "[ATen] Update pre-compiled header ( #106915 )"
...
This reverts commit c68d0a7042e850cebc4cbe7f717fc11aedf6b9d7.
Reverted https://github.com/pytorch/pytorch/pull/106915 on behalf of https://github.com/osalpekar due to Unfortunately there is still a breaking Metal job due to the bottom PR. @kit1980 will help fix this and get this merged ([comment](https://github.com/pytorch/pytorch/pull/106915#issuecomment-1696530828 ))
2023-08-28 22:51:19 +00:00
c68d0a7042
[ATen] Update pre-compiled header ( #106915 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106915
Approved by: https://github.com/lezcano
ghstack dependencies: #106914
2023-08-25 18:24:05 +00:00
e573abec12
Revert "[ATen] Update pre-compiled header ( #106915 )"
...
This reverts commit 4f3284e3edd41b883f8bb347fbe33532b2485f53.
Reverted https://github.com/pytorch/pytorch/pull/106915 on behalf of https://github.com/ZainRizvi due to reverting the full stack. I missed that the iostream pr was stacked under this one and it's builds are also failing internally ([comment](https://github.com/pytorch/pytorch/pull/106915#issuecomment-1689087860 ))
2023-08-23 00:25:31 +00:00
4f3284e3ed
[ATen] Update pre-compiled header ( #106915 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106915
Approved by: https://github.com/lezcano
ghstack dependencies: #106914
2023-08-19 20:21:58 +00:00
9e86796fe3
simple c10 implementation for std::call_once ( #78051 )
...
A long standing bug on std::call_once: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66146
It could hang during re-entry after an exception handling.
Added a c10 implementation yielding a bulky mutex. Not the most efficient thing but at least it shouldn't hang.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/78051
Approved by: https://github.com/albanD
2022-06-28 15:47:03 +00:00