p2pmpi.mpi
Class MPI

java.lang.Object
  extended by p2pmpi.mpi.MPI
Direct Known Subclasses:
DevicePort

public class MPI
extends java.lang.Object

P2P-MPI class.

Author:
Choopan Rattanapoka

Field Summary
static int ANY_SOURCE
          Primitive datatype constant
static int ANY_TAG
          Primitive datatype constant
static Op BAND
          Primitive collective-operation
static Datatype BOOLEAN
          Primitive datatype
static Datatype BYTE
          Primitive datatype
static Datatype BYTE2
          Primitive datatype
static Datatype CHAR
          Primitive datatype
static Datatype CHAR2
          Primitive datatype
static IntraComm COMM_WORLD
          MPI_COMM_WORLD
static Datatype DOUBLE
          Primitive datatype
static Datatype DOUBLE2
          Primitive datatype
static Datatype FLOAT
          Primitive datatype
static Datatype FLOAT2
          Primitive datatype
static int IDENT
          Return value of comparing MPI Group
static Datatype INT
          Primitive datatype
static Datatype INT2
          Primitive datatype
static Datatype LONG
          Primitive datatype
static Datatype LONG2
          Primitive datatype
static Op MAX
          Primitive collective-operation
static Op MAXLOC
          Primitive collective-operation
static Op MIN
          Primitive collective-operation
static Op MINLOC
          Primitive collective-operation
static Datatype NULL
          Primitive datatype
static Datatype OBJECT
          Primitive datatype
static Datatype PACKED
          Primitive datatype (not available yet)
static Op PROD
          Primitive collective-operation
static Datatype SHORT
          Primitive datatype
static Datatype SHORT2
          Primitive datatype
static int SIMILAR
          Return value of comparing MPI Group
static Datatype STRING
          Primitive datatype
static Op SUM
          Primitive collective-operation
static int UNDEFINED
          Undefined Rank
static int UNEQUAL
          Return value of comparing MPI Group
 
Constructor Summary
MPI()
           
 
Method Summary
static void Finalize()
          Finalization the MPI program
static java.lang.String Get_processor_name()
          Returns a local hostname - this one is part of the MPJ API
static java.lang.String[] Init(java.lang.String[] args)
          Initialization the MPI program
static int Rand()
          Returns a pseudorandom, uniformly distributed int value from this random number generator's sequence
static int Rand(int n)
          Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
static double Wtick()
          Returns the resolution of Wtime
static double Wtime()
          Returns an elapsed time on the calling processor (seconds)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static Datatype NULL
Primitive datatype


BYTE

public static Datatype BYTE
Primitive datatype


CHAR

public static Datatype CHAR
Primitive datatype


SHORT

public static Datatype SHORT
Primitive datatype


BOOLEAN

public static Datatype BOOLEAN
Primitive datatype


INT

public static Datatype INT
Primitive datatype


LONG

public static Datatype LONG
Primitive datatype


FLOAT

public static Datatype FLOAT
Primitive datatype


DOUBLE

public static Datatype DOUBLE
Primitive datatype


STRING

public static Datatype STRING
Primitive datatype


OBJECT

public static Datatype OBJECT
Primitive datatype


BYTE2

public static Datatype BYTE2
Primitive datatype


CHAR2

public static Datatype CHAR2
Primitive datatype


SHORT2

public static Datatype SHORT2
Primitive datatype


INT2

public static Datatype INT2
Primitive datatype


LONG2

public static Datatype LONG2
Primitive datatype


FLOAT2

public static Datatype FLOAT2
Primitive datatype


DOUBLE2

public static Datatype DOUBLE2
Primitive datatype


PACKED

public static Datatype PACKED
Primitive datatype (not available yet)


ANY_SOURCE

public static int ANY_SOURCE
Primitive datatype constant


ANY_TAG

public static int ANY_TAG
Primitive datatype constant


UNEQUAL

public static int UNEQUAL
Return value of comparing MPI Group


SIMILAR

public static int SIMILAR
Return value of comparing MPI Group


IDENT

public static int IDENT
Return value of comparing MPI Group


UNDEFINED

public static int UNDEFINED
Undefined Rank


MAX

public static Op MAX
Primitive collective-operation


MIN

public static Op MIN
Primitive collective-operation


SUM

public static Op SUM
Primitive collective-operation


PROD

public static Op PROD
Primitive collective-operation


BAND

public static Op BAND
Primitive collective-operation


MAXLOC

public static Op MAXLOC
Primitive collective-operation


MINLOC

public static Op MINLOC
Primitive collective-operation


COMM_WORLD

public static IntraComm COMM_WORLD
MPI_COMM_WORLD

Constructor Detail

MPI

public MPI()
Method Detail

Init

public static java.lang.String[] Init(java.lang.String[] args)
Initialization the MPI program

Parameters:
args - arguments
Returns:
list of arguments of program

Rand

public static int Rand()
Returns a pseudorandom, uniformly distributed int value from this random number generator's sequence


Rand

public static int Rand(int n)
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.


Finalize

public static void Finalize()
Finalization the MPI program


Wtime

public static double Wtime()
Returns an elapsed time on the calling processor (seconds)

Returns:
elapsed wallclock time in seconds since some time in the past

Wtick

public static double Wtick()
Returns the resolution of Wtime

Returns:
resolution of wtime in seconds

Get_processor_name

public static java.lang.String Get_processor_name()
Returns a local hostname - this one is part of the MPJ API

Returns:
local hostname