org.javaseis.tests
Class CommunicationBenchmark

java.lang.Object
  extended by org.javaseis.tests.CommunicationBenchmark

public class CommunicationBenchmark
extends java.lang.Object

Communication benchmark to measure "all to all" style operations. The main program takes two arguments for buffer size and iteration count. The program then calls IParallelContext.bcast, shift, and ttran with the given buffer size and iteration count.

Results are printed as MegaBytes (1024*1024 bytes) per second on a per node and total basis.

Author:
Chuck Mosher for JavaSeis.org

Constructor Summary
CommunicationBenchmark()
           
 
Method Summary
static void main(java.lang.String[] args)
          Run communication benchmark.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommunicationBenchmark

public CommunicationBenchmark()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws MPIException
Run communication benchmark.

Parameters:
args - argument string from command line Program arguments:
 -size size[m][k] : size of the buffer used in 32 bit words. The suffix
                    'm' indicates the size is in MegaBytes,
                    'k' indicates size in 'KiloBytes'
 -count count     : iteration count for the test.
 
Throws:
MPIException