|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.spacetime.GreedyLayout
public class GreedyLayout
This class calculates the assignment of filters to tiles using a greedy bin packing heuristic. At each step, assign the current filter in question to the tile with the least amount of work assigned to it.
Constructor Summary | |
---|---|
GreedyLayout(SpaceTimeSchedule spaceTime,
RawChip chip)
Create a new GreedyLayout object that is ready for the packing to begin. |
Method Summary | |
---|---|
HashMap<SliceNode,RawTile> |
getAssignment()
|
int[] |
getBinWeights()
|
RawTile |
getComputeNode(SliceNode node)
Get the ComputeNode for a Slice |
int |
maxBinWeight()
|
void |
run()
Calcuate the assignment of filters to tiles. |
void |
setComputeNode(SliceNode node,
RawTile 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 GreedyLayout(SpaceTimeSchedule spaceTime, RawChip chip)
spaceTime
- chip
- Method Detail |
---|
public HashMap<SliceNode,RawTile> getAssignment()
public RawTile getComputeNode(SliceNode node)
Layout
getComputeNode
in interface Layout<RawTile>
node
- : the SliceNode
to look up.
ComputeNode
that should execute the SliceNode
.public void setComputeNode(SliceNode node, RawTile tile)
Layout
setComputeNode
in interface Layout<RawTile>
node
- the SliceNode
to associate with ...tile
- the ComputeNode
where the SliceNode
should execute.public void run()
run
in interface Layout<RawTile>
public int[] getBinWeights()
public int maxBinWeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |