Java* MPI Applications Support

Intel® MPI Library provides an experimental feature to enable support for Java MPI applications. Java bindings are available for a subset of MPI-2 routines. For a full list of supported routines, refer to the Developer Reference, section Miscellaneous > Java* Bindings for MPI-2 Routines.

Running Java* MPI applications

Follow these steps to set up the environment and run your Java* MPI application:

  1. Source mpivars.sh from the Intel® MPI Library package to set up all required environment variables, including LIBRARY_PATH and CLASSPATH.
  2. Build your Java MPI application as usual.
  3. Update CLASSPATH with the path to the jar application or pass it explicitly with the –cp option of the java command.
  4. Run your Java MPI application using the following command:

    $ mpirun <options> java <app>

    where:

    For example:

    $ mpirun -n 8 -ppn 1 –f ./hostfile java mpi.samples.Allreduce

Sample Java MPI applications are available in the <install_dir>/test folder.

Development Recommendations

You can use the following tips when developing Java* MPI applications: