28 #include <graphlab/rpc/dc.hpp>
29 #include <graphlab/rpc/dc_init_from_mpi.hpp>
30 #include <graphlab/util/stl_util.hpp>
31 #include <graphlab/util/net_util.hpp>
35 #include <graphlab/util/mpi_tools.hpp>
41 ASSERT_MSG(commtype ==
TCP_COMM,
"MPI initialization only supports TCP at the moment");
44 size_t port = port_and_sock.first;
45 int sock = port_and_sock.second;
49 ipaddr = ipaddr +
":" +
tostr(port);
51 logstream(
LOG_INFO) <<
"Will Listen on: " << ipaddr << std::endl;
52 std::vector<std::string> machines;
53 mpi_tools::all_gather(ipaddr, param.
machines);
62 std::cerr <<
"MPI Support not compiled!" << std::endl;