pytorch/torch/csrc/distributed/c10d
Nikita Shulga e49ea87162 Fix socket.cpp compilation using gcc-9.4 (#111002)
Otherwise following error is thrown when attempted to compile with WERROR enabled:
```
In file included from /home/nshulga/git/pytorch/pytorch/torch/csrc/distributed/c10d/socket.cpp:30:
/home/nshulga/git/pytorch/pytorch/third_party/fmt/include/fmt/chrono.h:340:24: warning: redundant redeclaration of ‘constexpr’ static data member ‘fmt::v10::detail::codecvt_result<CodeUnit>::max_size’ [-Wdeprecated]
  340 | constexpr const size_t codecvt_result<CodeUnit>::max_size;
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
/home/nshulga/git/pytorch/pytorch/third_party/fmt/include/fmt/chrono.h:335:33: note: previous declaration of ‘fmt::v10::detail::codecvt_result<CodeUnit>::max_size’
  335 |   static constexpr const size_t max_size = 32;
      |                                 ^~~~~~~~
```
or following if using clang as host compiler
```
In file included from /Users/nshulga/git/pytorch/pytorch/torch/csrc/distributed/c10d/socket.cpp:30:
/Users/nshulga/git/pytorch/pytorch/third_party/fmt/include/fmt/chrono.h:340:50: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated]
constexpr const size_t codecvt_result<CodeUnit>::max_size;
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/111002
Approved by: https://github.com/drisspg
2023-10-11 05:16:00 +00:00
..
quantization [Reland2] fix missing-prototypes warnings in torch_cpu (Part 4) (#102228) 2023-06-02 22:04:44 +00:00
Backend.cpp Revert "Reland "[C10] PG observability hooks. (#108815)" (#110907)" 2023-10-11 00:23:42 +00:00
Backend.hpp Revert "Reland "[C10] PG observability hooks. (#108815)" (#110907)" 2023-10-11 00:23:42 +00:00
c10d.h
comm.cpp Add const reference and std::move in opportunities detected by clang-tidy (#105815) 2023-07-25 12:28:14 +00:00
comm.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
debug.cpp [RESUBMIT] Standardize on error types for distributed errors. (#108191) 2023-08-30 21:47:39 +00:00
debug.h
default_comm_hooks.cpp DDP + C10D sparse all_reduce changes (#103916) (#104256) 2023-06-28 00:37:52 +00:00
default_comm_hooks.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
error.h Fix calls to unqualified format_to to not clash with C++20's std::format_to (#103130) 2023-06-09 18:19:07 +00:00
exception.h [RESUBMIT] Standardize on error types for distributed errors. (#108191) 2023-08-30 21:47:39 +00:00
FileStore.cpp [RESUBMIT] Standardize on error types for distributed errors. (#108191) 2023-08-30 21:47:39 +00:00
FileStore.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
GlooDeviceFactory.cpp Fix header-filter for clang-tidy c10 and apply some fixes to c10 and … (#91178) 2022-12-27 07:34:12 +00:00
GlooDeviceFactory.hpp Cleanup Windows warning suppression in CMake and fix some warnings in the source code (#94927) 2023-02-27 19:22:20 +00:00
HashStore.cpp [RESUBMIT] Standardize on error types for distributed errors. (#108191) 2023-08-30 21:47:39 +00:00
HashStore.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
init.cpp Revert "Reland "[C10] PG observability hooks. (#108815)" (#110907)" 2023-10-11 00:23:42 +00:00
logger.cpp Fix warning if backend registers timer (#91702) 2023-02-21 14:09:47 +00:00
logger.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
logging.cpp
logging.h
NCCLUtils.cpp [nccl] denoise warning msg (#110433) 2023-10-04 06:21:53 +00:00
NCCLUtils.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
Ops.cpp Revert "Deprecate registering autograd kernels at not an autograd key (#104481)" 2023-07-11 21:48:22 +00:00
ParamCommsUtils.cpp [BE] Tweak Meta copyright headers (#90805) 2022-12-14 20:30:31 +00:00
ParamCommsUtils.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
PrefixStore.cpp [C10D] Remove watchKey functionality from the Store. (#105014) 2023-07-21 21:18:55 +00:00
PrefixStore.hpp [Reland] Add -Wdeprecated and related fixes (#110019) 2023-09-28 03:34:29 +00:00
ProcessGroup.cpp Revert "Reland "[C10] PG observability hooks. (#108815)" (#110907)" 2023-10-11 00:23:42 +00:00
ProcessGroup.hpp [C10d] Cleanup collective sequence number. (#109136) 2023-09-26 17:17:04 +00:00
ProcessGroupGloo.cpp Revert "Reland "[C10] PG observability hooks. (#108815)" (#110907)" 2023-10-11 00:23:42 +00:00
ProcessGroupGloo.hpp [C10d] Cleanup collective sequence number. (#109136) 2023-09-26 17:17:04 +00:00
ProcessGroupMPI.cpp [MPI] Allow previously initialized (#105023) 2023-07-15 01:24:56 +00:00
ProcessGroupMPI.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
ProcessGroupNCCL.cpp Revert "Reland "[C10] PG observability hooks. (#108815)" (#110907)" 2023-10-11 00:23:42 +00:00
ProcessGroupNCCL.hpp Revert "Reland "[C10] PG observability hooks. (#108815)" (#110907)" 2023-10-11 00:23:42 +00:00
ProcessGroupRoundRobin.cpp Apply Clang-Tidy readability-container-size-empty (#93236) 2023-01-29 23:28:19 +00:00
ProcessGroupRoundRobin.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
ProcessGroupUCC.cpp [RESUBMIT] Standardize on error types for distributed errors. (#108191) 2023-08-30 21:47:39 +00:00
ProcessGroupUCC.hpp Revert "Reduce includes of CUDACachingAllocator.h (#97072)" 2023-04-07 06:15:11 +00:00
ProcessGroupWrapper.cpp [PG Wrapper] Add diff capability (#100214) 2023-05-10 15:32:30 +00:00
ProcessGroupWrapper.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
PyProcessGroup.hpp [Reland] Add OnCompletion Hook to ProcessGroup (#106988) (#107233) 2023-08-15 17:35:14 +00:00
python_comm_hook.cpp
python_comm_hook.h
reducer_cuda.cpp
reducer_timer.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
reducer.cpp Revert "[1/N] Cleanup header inclusions in torch_cpu by iwyu (#101178)" 2023-09-25 20:05:25 +00:00
reducer.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
sequence_num.cpp Fix header-filter for clang-tidy c10 and apply some fixes to c10 and … (#91178) 2022-12-27 07:34:12 +00:00
sequence_num.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
socket.cpp Fix socket.cpp compilation using gcc-9.4 (#111002) 2023-10-11 05:16:00 +00:00
socket.h [RESUBMIT] Standardize on error types for distributed errors. (#108191) 2023-08-30 21:47:39 +00:00
Store.cpp [Reland] Add -Wdeprecated and related fixes (#110019) 2023-09-28 03:34:29 +00:00
Store.hpp [Reland][3/N] Add -Wdeprecated and related fixes (#110518) 2023-10-07 08:38:40 +00:00
TCPStore.cpp [C10D] Push store scalability a bit further. (#109217) 2023-09-22 17:23:46 +00:00
TCPStore.hpp [c10d] Add TCPSTore libuv backend support to c10d rendezvous. (#108284) 2023-09-07 21:39:58 +00:00
TCPStoreBackend.cpp [1/N] Enable Wunused-result and Wunused-variable in torch targets (#110722) 2023-10-08 23:43:45 +00:00
TCPStoreBackend.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
TCPStoreLibUvBackend.cpp [C10D] Push store scalability a bit further. (#109217) 2023-09-22 17:23:46 +00:00
TraceUtils.h
Types.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
UCCForNCCL.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
UCCTracing.cpp
UCCTracing.hpp
UCCUtils.cpp Fix typos in messages under torch (#88961) 2022-11-14 19:06:41 +00:00
UCCUtils.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
UnixSockUtils.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
Utils.cpp
Utils.hpp [RESUBMIT] Standardize on error types for distributed errors. (#108191) 2023-08-30 21:47:39 +00:00
WinSockUtils.hpp Apply clang-format to distributed/c10d folder (#107140) 2023-08-14 23:16:38 +00:00
Work.cpp Revert "Reland "[C10] PG observability hooks. (#108815)" (#110907)" 2023-10-11 00:23:42 +00:00
Work.hpp Revert "Reland "[C10] PG observability hooks. (#108815)" (#110907)" 2023-10-11 00:23:42 +00:00