Include iostream in ProcessGroupMPI.cpp (#63656)
authorNikita Shulga <nshulga@fb.com>
Fri, 20 Aug 2021 20:13:54 +0000 (13:13 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 20 Aug 2021 20:15:40 +0000 (13:15 -0700)
Summary:
As it uses `std::cerr`, which in turn results in compilation regression introduced by https://github.com/pytorch/pytorch/pull/61500
Fixes https://github.com/pytorch/pytorch/issues/63653

Pull Request resolved: https://github.com/pytorch/pytorch/pull/63656

Reviewed By: ejguan

Differential Revision: D30455824

Pulled By: malfet

fbshipit-source-id: 29f316e7f7fd8e7dcbee2666e7a985f25bf56515

torch/csrc/distributed/c10d/ProcessGroupMPI.cpp

index aa6d81b..b75f441 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <limits>
 #include <map>
+#include <iostream>
 
 #include <c10/core/DeviceGuard.h>
 #include <c10/util/irange.h>