cyy
b51f66c195
[Environment Variable][1/N] Use thread-safe env variable API in c10 ( #119449 )
...
This PR is the beginning of attempts to wrap thread-unsafe getenv and set_env functions inside a RW mutex.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119449
Approved by: https://github.com/albanD
2024-04-18 13:35:48 +00:00
PyTorch MergeBot
f5049de242
Revert "[Environment Variable][1/N] Use thread-safe env variable API in c10 ( #119449 )"
...
This reverts commit 5bef127c2e .
Reverted https://github.com/pytorch/pytorch/pull/119449 on behalf of https://github.com/PaliC due to your using TORCH_INTERNAL_ASSERT incorrectly ([comment](https://github.com/pytorch/pytorch/pull/119449#issuecomment-2062696010 ))
2024-04-17 23:44:00 +00:00
cyy
5bef127c2e
[Environment Variable][1/N] Use thread-safe env variable API in c10 ( #119449 )
...
This PR is the beginning of attempts to wrap thread-unsafe getenv and set_env functions inside a RW mutex.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119449
Approved by: https://github.com/albanD
2024-04-16 04:39:20 +00:00
cyy
fb10e13000
[Clang-tidy header][24/N] Fix clang-tidy warnings on c10/cuda/*.{cpp,h} ( #120781 )
...
This PR begins to clean clang-tidy warnings of code in c10/cuda.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120781
Approved by: https://github.com/ezyang
2024-03-15 05:03:22 +00:00
cyy
4a019047ad
Enable nested namespace check in clang-tidy ( #118506 )
...
It is time to enable nested namespaces in the code.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/118506
Approved by: https://github.com/albanD
2024-01-31 00:32:35 +00:00
PyTorch MergeBot
9c7391ea36
Revert " [1/N] Apply clang-tidy to c10 cuda files ( #111137 )"
...
This reverts commit 43b023694e .
Reverted https://github.com/pytorch/pytorch/pull/111137 on behalf of https://github.com/malfet due to Was reverted internally due to the failures in torch.cuda.memory_stats(device=0) (presumably) ([comment](https://github.com/pytorch/pytorch/pull/111137#issuecomment-1769274103 ))
2023-10-18 20:32:53 +00:00
cyy
43b023694e
[1/N] Apply clang-tidy to c10 cuda files ( #111137 )
...
Fixes #ISSUE_NUMBER
Pull Request resolved: https://github.com/pytorch/pytorch/pull/111137
Approved by: https://github.com/zou3519 , https://github.com/Skylion007
2023-10-17 04:52:50 +00:00
Richard Barnes
6f749fd171
Fixes to DSA infra ( #91835 )
...
Differential Revision: D42397325
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91835
Approved by: https://github.com/soumith
2023-01-12 21:54:26 +00:00
Zachary DeVito
f56ce8dbad
[allocator] Move getFreeMutex ( #87237 )
...
It isn't used at all the allocators and this change makes that more clear.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/87237
Approved by: https://github.com/wconstab
2022-10-19 18:00:40 +00:00
Natalia Gimelshein
6284d2a82b
wrap cudaStreamSynchronize calls ( #61889 )
...
Summary:
This is a first step towards creating context manager that errors out on synchronizing calls.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61889
Reviewed By: albanD
Differential Revision: D29805280
Pulled By: ngimel
fbshipit-source-id: b66400fbe0941b7daa51e6b30abe27b9cccd4e8a
2021-07-21 19:30:52 -07:00