|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.common.SimulatedAnnealing
at.dms.kjc.backendSupport.NoSWPipeLayout<T,Ts>
public class NoSWPipeLayout<T extends ComputeNode,Ts extends ComputeNodesI>
Field Summary | |
---|---|
protected LinkedList<SliceNode> |
assignedFilters
|
protected Ts |
chip
|
protected Partitioner |
partitioner
|
protected Random |
rand
|
protected LinkedList<Slice> |
scheduleOrder
|
Fields inherited from class at.dms.kjc.common.SimulatedAnnealing |
---|
ANNEALITERATIONS, assignment, MAXTEMPITERATIONS, MINTEMPITERATIONS, TFACTR |
Constructor Summary | |
---|---|
NoSWPipeLayout(SpaceTimeScheduleAndPartitioner spaceTime,
Ts chip)
|
Method Summary | |
---|---|
T |
getComputeNode(SliceNode node)
only valid after run(); |
void |
initialize()
Perform any initialization that has to be done before simulated annealing. |
void |
initialPlacement()
Random initial assignment. |
protected boolean |
keepNewEqualMin()
Decide if we should keep a configuration that has a cost that is EQUAL to the current minimum of the search. |
double |
placementCost(boolean debug)
The placement cost (energy) of the configuration. |
void |
run()
Do the setup for getComputeNode . |
void |
setAssignment(HashMap newAssign)
Use this function to reassign the assignment to |
void |
setComputeNode(SliceNode node,
T tile)
only valid after run() |
void |
swapAssignment()
Called by perturbConfiguration() to perturb the configuration. |
Methods inherited from class at.dms.kjc.common.SimulatedAnnealing |
---|
getRandom, printLayoutStats, setConstants, simAnnealAssign |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Partitioner partitioner
protected Ts extends ComputeNodesI chip
protected LinkedList<Slice> scheduleOrder
protected LinkedList<SliceNode> assignedFilters
protected Random rand
Constructor Detail |
---|
public NoSWPipeLayout(SpaceTimeScheduleAndPartitioner spaceTime, Ts chip)
Method Detail |
---|
public T getComputeNode(SliceNode node)
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)
setComputeNode
in interface Layout<T extends ComputeNode>
node
- the SliceNode
to associate with ...tile
- the ComputeNode
where the SliceNode
should execute.public void setAssignment(HashMap newAssign)
Simulated Annealing
.
setAssignment
in class SimulatedAnnealing
newAssign
- public void swapAssignment()
FilterSliceNode
s when this is called.
swapAssignment
in class SimulatedAnnealing
public void initialPlacement()
initialPlacement
in class SimulatedAnnealing
public double placementCost(boolean debug)
placementCost
in class SimulatedAnnealing
debug
- Might want to do some debugging...
public void initialize()
initialize
in class SimulatedAnnealing
protected boolean keepNewEqualMin()
keepNewEqualMin
in class SimulatedAnnealing
public void run()
Layout
getComputeNode
.
run
in interface Layout<T extends ComputeNode>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |