pytorch/torch/csrc/distributed/c10d
Yuanyuan Chen f0745ddb11 Replace c10::call_once with static initialization (#166381)
This PR replaces c10::call_once calls with static initialization when possible. C++11 semantics guarantees that static initialization is atomic. Static initialization also has lower cost than using c10::call_once.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166381
Approved by: https://github.com/malfet
2025-11-01 07:09:40 +00:00
..
control_collectives [Code Clean] Replace std::runtime_error with TORCH_CHECK (#165305) 2025-10-18 01:08:44 +00:00
control_plane [Code Clean] Better error handling in torch/csrc/distributed (#165053) 2025-10-22 01:40:36 +00:00
cuda [AsyncTP] Fixes AsyncMM (#162040) 2025-09-08 10:53:59 +00:00
quantization
symm_mem [3/N] fix typo in other folders (#166606) 2025-10-30 10:30:40 +00:00
Backend.cpp
Backend.hpp Revert "shrink_group implementation to expose ncclCommShrink API (#164518)" 2025-10-30 17:52:29 +00:00
Backoff.cpp
Backoff.hpp
c10d.h
comm.cpp [BE]: Add a few more missing move from return indices (#163456) 2025-09-22 20:24:23 +00:00
comm.hpp
debug.cpp
debug.h
default_comm_hooks.cpp
default_comm_hooks.hpp
error.h Replace decltype(auto) with auto (#166537) 2025-11-01 00:30:23 +00:00
exception.h
FakeProcessGroup.hpp Fix periodic debug tests failing due to FakeProcessGroup things (#165479) 2025-10-15 18:16:08 +00:00
FileStore.cpp [1/N] Change C-style casts to static_cast or reinterpret_cast (#165750) 2025-10-20 23:27:13 +00:00
FileStore.hpp
FlightRecorder.cpp allow providing full fr trace path (#165639) 2025-10-17 04:43:44 +00:00
FlightRecorder.hpp Add knobs in FR dump by watchdog (stacktrace and only active collectives) and trigger FR even on any exceptions (#164591) 2025-10-09 05:33:35 +00:00
FlightRecorderCuda.cpp Redirect all use of filesystem to c10/utils/FileSystem.h (#162914) 2025-09-15 04:30:41 +00:00
FlightRecorderDetail.hpp [fr] Enable reset the FR recording for fault tolerance (#164988) 2025-10-09 01:03:01 +00:00
Functional.cpp Fix readibility checks in TIDY and apply them (#164475) 2025-10-02 20:34:49 +00:00
Functional.hpp
GlooDeviceFactory.cpp Fix readibility checks in TIDY and apply them (#164475) 2025-10-02 20:34:49 +00:00
GlooDeviceFactory.hpp
GroupRegistry.cpp
GroupRegistry.hpp
HashStore.cpp Revert "[RELAND] Always build USE_DISTRIBUTED (#160449) and Make distributed modules importable even when backend not built (#159889) (#162594)" 2025-09-25 13:47:46 +00:00
HashStore.hpp
init.cpp Revert "shrink_group implementation to expose ncclCommShrink API (#164518)" 2025-10-30 17:52:29 +00:00
logger.cpp
logger.hpp [2/N] Mark unused parameters in C++ code (#165121) 2025-10-15 03:04:39 +00:00
logging.cpp
logging.h
NanCheck.cu
NanCheck.hpp
NCCLUtils.cpp Revert "shrink_group implementation to expose ncclCommShrink API (#164518)" 2025-10-30 17:52:29 +00:00
NCCLUtils.hpp Revert "shrink_group implementation to expose ncclCommShrink API (#164518)" 2025-10-30 17:52:29 +00:00
Ops.cpp LocalTensor (#164537) 2025-10-12 20:06:41 +00:00
ParamCommsUtils.cpp
ParamCommsUtils.hpp [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
PrefixStore.cpp
PrefixStore.hpp
ProcessGroup.cpp Fix readibility checks in TIDY and apply them (#164475) 2025-10-02 20:34:49 +00:00
ProcessGroup.hpp [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
ProcessGroupGloo.cpp Reverts #163712 and forces allgather/scatter inputs/outputs to be contiguous (#166181) 2025-10-25 02:43:10 +00:00
ProcessGroupGloo.hpp [torch][c10d] fix split_group in mixed backend case (#162424) 2025-09-11 16:29:32 +00:00
ProcessGroupGlooCuda.cpp [1/N] Fix clang-tidy readability checks (#164561) 2025-10-04 09:40:38 +00:00
ProcessGroupGlooDetail.hpp [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
ProcessGroupMPI.cpp
ProcessGroupMPI.hpp
ProcessGroupNCCL.cpp Replace c10::call_once with static initialization (#166381) 2025-11-01 07:09:40 +00:00
ProcessGroupNCCL.hpp Revert "shrink_group implementation to expose ncclCommShrink API (#164518)" 2025-10-30 17:52:29 +00:00
ProcessGroupUCC.cpp
ProcessGroupUCC.hpp
ProcessGroupWrapper.cpp Fix readibility checks in TIDY and apply them (#164475) 2025-10-02 20:34:49 +00:00
ProcessGroupWrapper.hpp
PyProcessGroup.hpp [c10d] Cleanup split_group logic using the newly built splitGroup (#158488) 2025-07-29 03:27:11 +00:00
python_comm_hook.cpp
python_comm_hook.h
RankLocal.hpp
reducer_cuda.cpp [1/N] Change C-style casts to static_cast or reinterpret_cast (#165750) 2025-10-20 23:27:13 +00:00
reducer_timer.hpp
reducer.cpp [1/N] Change C-style casts to static_cast or reinterpret_cast (#165750) 2025-10-20 23:27:13 +00:00
reducer.hpp [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
sequence_num.cpp
sequence_num.hpp
socket_fmt.h
socket.cpp Replace decltype(auto) with auto (#166537) 2025-11-01 00:30:23 +00:00
socket.h
Store.cpp
Store.hpp
TCPStore.cpp [1/N] Change C-style casts to static_cast or reinterpret_cast (#165750) 2025-10-20 23:27:13 +00:00
TCPStore.hpp [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
TCPStoreBackend.cpp [1/N] Fix clang-tidy readability checks (#164561) 2025-10-04 09:40:38 +00:00
TCPStoreBackend.hpp [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
TCPStoreLibUvBackend.cpp [1/N] Change C-style casts to static_cast or reinterpret_cast (#165750) 2025-10-20 23:27:13 +00:00
TraceUtils.h
Types.cpp [C10d][Gloo] Enable complex datatype support in ProcessGroupGloo (#156633) 2025-09-05 21:24:36 +00:00
Types.hpp [C10d][Gloo] Enable complex datatype support in ProcessGroupGloo (#156633) 2025-09-05 21:24:36 +00:00
UCCTracing.cpp Redirect all use of filesystem to c10/utils/FileSystem.h (#162914) 2025-09-15 04:30:41 +00:00
UCCTracing.hpp
UCCUtils.cpp [Code Clean] Better error handling in torch/csrc/distributed (#165053) 2025-10-22 01:40:36 +00:00
UCCUtils.hpp
UnixSockUtils.hpp
Utils.cpp
Utils.hpp Reverts #163712 and forces allgather/scatter inputs/outputs to be contiguous (#166181) 2025-10-25 02:43:10 +00:00
WinSockUtils.hpp
Work.cpp Revert "[RELAND] Always build USE_DISTRIBUTED (#160449) and Make distributed modules importable even when backend not built (#159889) (#162594)" 2025-09-25 13:47:46 +00:00
Work.hpp [2/N] Mark unused parameters in C++ code (#165121) 2025-10-15 03:04:39 +00:00