mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[c10d] Move the include of header file of TraceUtils.h into NCCLUtil.cpp instead of keeping in hpp (#156909)
We have seen complaint about compilation failure of `NCCLSymmetricMemory.cu` and the reason is because we include <torch/csrc/distributed/c10d/TraceUtils.h> inside NCCLUtil.hpp this is not necessary so we want to move the include to cpp. Differential Revision: [D77346675](https://our.internmc.facebook.com/intern/diff/D77346675) Pull Request resolved: https://github.com/pytorch/pytorch/pull/156909 Approved by: https://github.com/kwen2501
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#include <torch/csrc/distributed/c10d/NCCLUtils.hpp>
|
||||
#include <torch/csrc/distributed/c10d/TraceUtils.h>
|
||||
|
||||
#include <c10/util/env.h>
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
#include <c10/util/Exception.h>
|
||||
#include <nccl.h>
|
||||
#include <torch/csrc/cuda/nccl.h>
|
||||
#include <torch/csrc/distributed/c10d/TraceUtils.h>
|
||||
#include <optional>
|
||||
|
||||
constexpr int64_t kCommInitBusyWaitMillis = 2;
|
||||
|
Reference in New Issue
Block a user