Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <mpi.h>
- int main (void)
- {
- int rank(0);
- MPI_Init(0, NULL);
- MPI_Comm_size(MPI_COMM_WORLD, &rank);
- std::cout << "Rank: " << rank << std::endl;
- char port_name[MPI_MAX_PORT_NAME];
- MPI_Open_port(MPI_INFO_NULL, port_name);
- char publish_name[1024] = {'t','e','s','t','_','p','o','r','t','