laser.mpi.util.shuffle.test
Class UseCase2
java.lang.Object
|
+--laser.mpi.util.shuffle.test.UseCase
|
+--laser.mpi.util.shuffle.test.UseCase2
- public class UseCase2
- extends UseCase
In this use case, localData has length d on each proc. The d*nProcs
data elements are the distinct integers 0,1,...,d*nProcs-1 arranged
in the dictionary order. Then the data are permuted by sending each
element one to the right.
Field Summary |
(package private) int |
d
The length of localData on each proc. |
(package private) int |
nData
The total number of data, i.e., d*nProcs. |
Constructor Summary |
UseCase2(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 each proc.
nData
int nData
- The total number of data, i.e., d*nProcs.
UseCase2
public UseCase2(int d)
throws mpi.MPIException
- Constructs a new instance of this use case with the given d.
- Parameters:
d
- the number of data on each proc
- 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