This function demonstrates sending and receiving a string message over MPI. Each process will send a message to process with rank 0, which will then display it. To run this example, set the variables HOSTFILE and NUMBER_OF_MPI_NODES to appropriate values, then type the following command in your shell:
mpirun --hostfile $HOSTFILE -np $NUMBER_OF_MPI_NODES octave --eval 'pkg load mpi; hellocell ()'
The following code
system ("mpirun --hostfile $HOSTFILE -np $NUMBER_OF_MPI_NODES octave -q --eval 'pkg load mpi; hellocell ()'");
gives an example of how 'hellocell' is used.
Package: mpi