27 #include <graphlab/rpc/dc.hpp>
28 #include <graphlab/serialization/serialization_includes.hpp>
30 using namespace graphlab;
35 std::vector<std::string> name;
38 arc << a << b << name;
41 arc >> a >> b >> name;
46 void print(std::map<int, teststruct> &data1,
48 std::cout <<
"1.a = " << data1[1].a << std::endl;
49 std::cout <<
"2.b = " << data1[2].b << std::endl;
50 std::cout <<
"string = " << data2 << std::endl;
55 int main(
int argc,
char ** argv) {
56 mpi_tools::init(argc, argv);
60 std::cout<<
"RPC Example 4: Asynchronous RPC with Manual Serialization\n";
61 std::cout <<
"Run with exactly 2 MPI nodes.\n";
66 std::map<int, teststruct> data;
73 mpi_tools::finalize();