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
59254c75a1
[Reland] fix c10:TempFile APIs on Windows ( #108508 )
...
PR #106656 was reverted due to IOS failures. It seems that IOS builds don't have full support of std::filesystem. This PR discards std::filesystem changes and add temp file creation on Windows. It also moves the platform syscalls into a separate cpp file.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/108508
Approved by: https://github.com/ezyang
2023-09-10 16:58:41 +00:00