Skip to content

Commit

Permalink
fix windows compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
LiYuRio committed Aug 7, 2023
1 parent 2085a82 commit 675080a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion paddle/fluid/pybind/communication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void BindTCPStore(py::module *m) {
py::arg("timeout") = 900,
py::call_guard<py::gil_scoped_release>());

m->def("create_or_get_tcp_store",
m->def("create_or_get_global_tcp_store",
&phi::distributed::CreateOrGetGlobalTCPStore);
}

Expand Down
1 change: 0 additions & 1 deletion paddle/phi/core/distributed/auto_parallel/reshard_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <cstdlib>
#include "glog/logging.h"
#include "paddle/phi/core/distributed/auto_parallel/process_mesh.h"
#include "paddle/phi/core/distributed/store/tcp_store.h"

namespace phi {
namespace distributed {
Expand Down
4 changes: 2 additions & 2 deletions paddle/phi/core/distributed/auto_parallel/reshard_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#include <string>
#include <vector>

#include "paddle/phi/core/distributed/store/tcp_store.h"

namespace phi {
namespace distributed {
class TCPStore;

namespace auto_parallel {

class ProcessMesh;
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/distributed/collective.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def is_available():


def _init_parallel_env(backend):
store = core.get_global_tcp_store()
store = core.create_or_get_global_tcp_store()
global_env = _get_global_env()
rank = global_env.rank
world_size = global_env.world_size
Expand Down

0 comments on commit 675080a

Please sign in to comment.