|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.backendSupport.BasicGreedyLayout<T>
public class BasicGreedyLayout<T extends ComputeNode>
Use greedy bin packing to allocate slices to compute nodes.
| Constructor Summary | |
|---|---|
BasicGreedyLayout(SpaceTimeScheduleAndPartitioner spaceTime,
T[] nodes)
Constructor |
|
| Method Summary | |
|---|---|
HashMap<SliceNode,T> |
getAssignment()
|
int[] |
getBinWeights()
get the bin weights (Estimated max computation at each node). |
T |
getComputeNode(SliceNode node)
Get the ComputeNode for a Slice |
int |
maxBinWeight()
get maximum bin weight (Estimated max computation at any node). |
void |
run()
Do the setup for getComputeNode. |
void |
setComputeNode(SliceNode node,
T tile)
Set the ComputeNode for a Slice |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicGreedyLayout(SpaceTimeScheduleAndPartitioner spaceTime,
T[] nodes)
spaceTime - nodes - | Method Detail |
|---|
public HashMap<SliceNode,T> getAssignment()
public T getComputeNode(SliceNode node)
Layout
getComputeNode in interface Layout<T extends ComputeNode>node - : the SliceNode to look up.
ComputeNode that should execute the SliceNode.
public void setComputeNode(SliceNode node,
T tile)
Layout
setComputeNode in interface Layout<T extends ComputeNode>node - the SliceNode to associate with ...tile - the ComputeNode where the SliceNode should execute.public void run()
LayoutgetComputeNode.
run in interface Layout<T extends ComputeNode>public int[] getBinWeights()
public int maxBinWeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||