Function File: = hellosparsemat ()
This function demonstrates sending and receiving a sparse matrix over MPI. Each process will send a a sparse matrix 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; hellosparsemat ()'
The following code
system ("mpirun --hostfile $HOSTFILE -np $NUMBER_OF_MPI_NODES octave -q --eval 'pkg load mpi; hellosparsemat ()'");
gives an example of how 'hellosparsemat' is used.
Package: mpi