laser.mpi.util.shuffle.test
Class UseCase3
java.lang.Object
|
+--laser.mpi.util.shuffle.test.UseCase
|
+--laser.mpi.util.shuffle.test.UseCase3
- public class UseCase3
- extends UseCase
In this use case, localData has length d on each proc, except for
proc0, which has localData with length d*nProcs. In the original
configuration of the data, only the first d elements in localData
on proc 0 are used, the rest of the elements in procData are filled
with the string "-". Hence in the beginning we are essentially
using d elements on each proc, and the d*nProcs data elements are
the distinct integers 0,1,...,d*nProcs-1 arranged in the dictionary
order.
The map sends all the data on all the procs with positive to rank
to proc 0, filling in the "blank" spots on proc 0.
Field Summary |
(package private) int |
d
The length of localData on all procs with positive rank |
(package private) int |
nData
d*nProcs |
Constructor Summary |
UseCase3(int d)
Constructs a new instance of this use case with the given d. |
Method Summary |
static void |
main(java.lang.String[] args)
Performs a test based on this use case with d=5. |
Methods inherited from class laser.mpi.util.shuffle.test.UseCase |
test |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
d
int d
- The length of localData on all procs with positive rank
nData
int nData
- d*nProcs
UseCase3
public UseCase3(int d)
throws mpi.MPIException
- Constructs a new instance of this use case with the given d.
- Parameters:
d
- the length of localData on all procs with positive rank
- Throws:
mpi.MPIException
- if something goes awry with MPI
main
public static void main(java.lang.String[] args)
throws mpi.MPIException
- Performs a test based on this use case with d=5. The args are
ignored.
- Parameters:
args
- the command line arguments (ignored)
- Throws:
mpi.MPIException
- if something goes awry with MPI