at.dms.kjc.spacetime
Class CompCommRatio

java.lang.Object
  extended by at.dms.kjc.spacetime.CompCommRatio

public class CompCommRatio
extends Object

Calculate the computation to communication ratio. Poorly named class, the name should be CompCommRatio.

Author:
mgordon

Constructor Summary
CompCommRatio()
           
 
Method Summary
static double ratio(Partitioner partitioner)
          Calculate the computation to communication ratio of the application.
static double ratio(SIRStream str, WorkEstimate work, HashMap<SIRStream,int[]> executionCounts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompCommRatio

public CompCommRatio()
Method Detail

ratio

public static double ratio(SIRStream str,
                           WorkEstimate work,
                           HashMap<SIRStream,int[]> executionCounts)

ratio

public static double ratio(Partitioner partitioner)
Calculate the computation to communication ratio of the application. Where the computation is total work of all the filters in the steady-state and the communication is the number of items sent between slices.

Parameters:
partitioner - The partitioner we used to slice the graph.
Returns:
The computation to communication ratio.