| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| open_mpi_with_java_binding [2016/02/23 20:01] – [Documentation] admin | open_mpi_with_java_binding [2022/12/12 13:49] (Version actuelle) – [Documentation] admin |
|---|
| |
| ===== How do I build and run my Java MPI application? ===== | ===== How do I build and run my Java MPI application? ===== |
| | |
| | <note warning> |
| | EDIT dec 2022\\ |
| | use ''module mpi/openmpi/gcc/openmpi@4.1.1/gcc-11.2.0'' |
| | </note> |
| | |
| |
| Load Java MPI binding : | Load Java MPI binding : |
| |
| |
| <WRAP center round tip 60%> | <WRAP center round tip 80%> |
| For convenience, mpirun has been updated to detect the Java command and ensure that the required MPI libraries and class paths are defined to support execution. You therefore do NOT need to specify the Java library path to the MPI installation, nor the MPI classpath. Any class path definitions required for your application should be specified either on the command line or via the CLASSPATH environmental variable. Note that the local directory will be added to the class path if nothing is specified. | For convenience, mpirun has been updated to detect the Java command and ensure that the required MPI libraries and class paths are defined to support execution. You therefore do NOT need to specify the Java library path to the MPI installation, nor the MPI classpath. Any class path definitions required for your application should be specified either on the command line or via the CLASSPATH environmental variable. Note that the local directory will be added to the class path if nothing is specified. |
| As always, the java executable, all required libraries, and your application classes must be available on all nodes. | As always, the java executable, all required libraries, and your application classes must be available on all nodes. |
| </WRAP> | </WRAP> |
| |
| | |
| | <note important>**BUG related to PSM Infiniband**. There are two solutions to run MPI:\\ |
| | |
| | * solution1: mpirun <code bash>--mca mtl ^psm ...</code> **This solution may use a lot of memory**. |
| | * solution2: mpirun <code bash>--mca pml ob1 ...</code> |
| | </note> |
| |
| |
| </code> | </code> |
| |
| ==== Built it==== | ==== Build it==== |
| |
| <code bash> | <code bash> |
| * Browse the API http://mesowiki.univ-fcomte.fr/docs/openmpi/javadoc/ | * Browse the API http://mesowiki.univ-fcomte.fr/docs/openmpi/javadoc/ |
| * http://blogs.cisco.com/performance/java-bindings-for-open-mpi | * http://blogs.cisco.com/performance/java-bindings-for-open-mpi |
| * http://www.hpjava.org/papers/MPJ-CPE/cpempi/cpempi.html | |
| * http://www.open-mpi.org/papers/mpi-java-spec/ | * http://www.open-mpi.org/papers/mpi-java-spec/ |
| * http://www.open-mpi.org/faq/?category=java | * http://www.open-mpi.org/faq/?category=java |
| | * https://github.com/kma/ezmpj 8-) LOL |
| | |
| |