|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapss.dif.csdf.sdf.mem.DataPartitioning
public class DataPartitioning
The class for data partitioning in dual homogeneous memory bank architectures. It is developed for Mingyung's research. Basically, an conflict graph should be provided. Generally, nodes representing data variables while edges' meaning depends on applications.
Field Summary | |
---|---|
protected ConflictGraph |
_conflictGraph
The conflict graph. |
Constructor Summary | |
---|---|
DataPartitioning(ConflictGraph conflictGraph)
A constructor with an conflict graph. |
Method Summary | |
---|---|
protected void |
_alternateAssignment(mocgraph.Node seed)
Alternate partition assignment for a given node as seed. |
protected boolean |
_linksExistFor(GraphPartition partition,
mocgraph.Node node)
Check existence of links between the partition and node. |
protected GraphPartition |
_minPartition(PartitionedGraph pGraph)
The partition with minimal sum of node values. |
protected void |
_prioritizedAlternateAssignment(mocgraph.Node node)
An SPF-like alternate assignment which favors partitioning conflicts. |
protected void |
_processNeighborsOf(mocgraph.Node node)
Bank assignment for neighbor nodes of a seed. |
ConflictGraph |
consolidateSharedBuffersStrategy()
Partitioning strategy with consolidated shared buffers. |
void |
initPartitions(int counts)
Initialize partitions by the given counts. |
int |
minimalPartitionSize()
Return the minimal partition size. |
ConflictGraph |
sharedSPFStrategy()
An extended SPF strategy considering sharing conflicts. |
ConflictGraph |
SPFStrategy()
The SPF heuristic for two memory banks. |
ConflictGraph |
SPFStrategy(int partitionCounts)
The "Smallest Partition First (SPF)" strategy in solving data partitioning problems. |
java.lang.String |
toOPBDPString()
Transform to OPBDP file format. |
ConflictGraph |
twoColoringStrategy()
A two coloring algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConflictGraph _conflictGraph
Constructor Detail |
---|
public DataPartitioning(ConflictGraph conflictGraph)
conflictGraph
- The conflict graph to partition.Method Detail |
---|
public ConflictGraph twoColoringStrategy()
ConflictGraph
.public ConflictGraph SPFStrategy()
SPFStrategy(int)
.
ConflictGraph
.public ConflictGraph SPFStrategy(int partitionCounts)
partitionCounts
- The number of partitions available.
ConflictGraph
.public ConflictGraph sharedSPFStrategy() throws DataPartitioningException
ConflictGraph
.
DataPartitioningException
public ConflictGraph consolidateSharedBuffersStrategy() throws DataPartitioningException
SPFStrategy()
is invoked for
actual partitioning.
ConflictGraph
.
DataPartitioningException
public void initPartitions(int counts)
counts
- Number of partitions to initialize.public int minimalPartitionSize()
int
.public java.lang.String toOPBDPString()
protected void _alternateAssignment(mocgraph.Node seed)
seed
- The seed node.protected void _processNeighborsOf(mocgraph.Node node)
_alternateAssignment(Node)
.
node
- The node whose neighbors are to be processed.protected void _prioritizedAlternateAssignment(mocgraph.Node node) throws DataPartitioningException
node
- The node to start the alternate assignment.
DataPartitioningException
protected GraphPartition _minPartition(PartitionedGraph pGraph)
pGraph
- The partitioned graph.
protected boolean _linksExistFor(GraphPartition partition, mocgraph.Node node)
partition
- The partition.node
- The node.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |