[c10d] Disable stack trace call in logging (#156362)

Summary: We noticed std::future_error: Broken promise errors in logging, so let's disable for now and will investigate more.

Test Plan:
CI

Rollback Plan:

Differential Revision: D76929722

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156362
Approved by: https://github.com/fegin
This commit is contained in:
Junjie Wang (PyTorch)
2025-06-19 05:11:53 +00:00
committed by PyTorch MergeBot
parent a21806f038
commit ce8180a61d

View File

@ -2312,7 +2312,8 @@ void ProcessGroupNCCL::Watchdog::runLoop() {
data.integers["world_size"] = pg_->size_;
data.strings["comm_backend"] = "nccl";
data.strings["comm_backend_version"] = getNcclVersion();
data.strings["collective_stack"] = work.getTraceback();
// TODO: We see errors for this line, revert it for now.
data.strings["collective_stack"] = "";
data.strings["collective_name"] = opTypeToString(work.opType_);
logger->log(data);
}