29 #include <graphlab/rpc/dc.hpp>
30 #include <graphlab/serialization/serialization_includes.hpp>
31 using namespace graphlab;
34 void print(std::string val) {
35 std::cout << val << std::endl;
38 std::vector<int> add_one(std::vector<int> val) {
44 int main(
int argc,
char ** argv) {
46 mpi_tools::init(argc, argv);
50 std::cout<<
"RPC Example 2: Asynchronous RPC with Built-in Serialization\n";
51 std::cout <<
"Run with exactly 2 MPI nodes.\n";
60 vec.push_back(1); vec.push_back(2);
64 std::stringstream strm;
66 for (
size_t i = 0; i < vec.size(); ++i) {
67 strm << vec[i] <<
", ";
75 mpi_tools::finalize();