Next: UNIX Platforms
Up: mpiJava: An Object-Oriented Java
Previous: Derived Datatype vs Object
Contents
To ``port'' mpiJava, it is
necessary to have a native MPI library, a version of the Java
Development Toolkit (JDK) and a C compiler. mpiJava consists of
two main parts: the MPI Java classes and the C stubs that binds the MPI
Java classes to the underlying native MPI implementation. We create
these C stubs using JNI--the means by which Java can call and pass
parameters to and from a native API, see the next section for
details. Figure 4.3 provides a
simple schematic view of the software layers involved.
Figure 4.3:
Software Layers
 |
To port mpiJava onto a new platform, generally two steps are needed.
- Create a native library out of the compiled JNI C stubs.
- Compile MPI Java in class libraries - ensuring that the correctly named
stub library is loaded by the Java
System.loadLibrary("mpijava") call in the main source file
MPI.java.
Subsections
Bryan Carpenter
2004-06-09