mpi_init

The mpi_init operator initializes the MPI infrastructure.

Synopsis

mpi_init();

Library

The mpi_init operator resides in the Dense Linear Algebra library. Run the following query to load this library:

AFL% load_library('dense_linear_algebra');

Summary

The mpi_init() operator takes no arguments, and returns an empty array. It spawns MPI slave processes, recieves their handshakes, and tells the slaves to exit to initialize (and test) the MPI infrastructure.

All MPI-based operators (e.g. gemm() and gesvd(), including mpi_init()) are serialized with respect to each other and do not execute concurrently.

mpi_init() also cleans any MPI-related OS resources left behind by previous MPI-based queries (such as files, processes, IPC objects, an so on). Running mpi_init() is not required, but you can run it to return the MPI infrastructure to a clean state if you encounter unexpected failures.