|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.cell.CellChip
public class CellChip
| Constructor Summary | |
|---|---|
CellChip(Integer numberOfSpus)
Construct a new collection and fill it with ComputeNodes. |
|
| Method Summary | |
|---|---|
boolean |
canAllocateNewComputeNode()
Does this implementation have dynamic creation of new nodes or are all nodes statically allocated. |
CellPU |
getNthComputeNode(int n)
Get the nth element of the collection of compute nodes. |
PPU |
getPPU()
|
LinkedList<SPU> |
getSPUs()
|
boolean |
isValidComputeNodeNumber(int cellpuNumber)
Does a number correspond to a compute node? |
int |
newComputeNode()
Create a new compute node if compute nodes are dynamically creatable. |
int |
numberOfSPUs()
|
int |
size()
Return the (current) number of compute nodes. |
CellPU[] |
toArray()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CellChip(Integer numberOfSpus)
ComputeNodes.
numberOfNodes - | Method Detail |
|---|
public boolean canAllocateNewComputeNode()
ComputeNodesI
canAllocateNewComputeNode in interface ComputeNodesI<CellComputeCodeStore>ComputeNodesI.newComputeNode() may throw any throwable.public CellPU getNthComputeNode(int n)
ComputeNodesI
getNthComputeNode in interface ComputeNodesI<CellComputeCodeStore>public PPU getPPU()
public LinkedList<SPU> getSPUs()
public boolean isValidComputeNodeNumber(int cellpuNumber)
ComputeNodesI
isValidComputeNodeNumber in interface ComputeNodesI<CellComputeCodeStore>cellpuNumber - number to check
public int newComputeNode()
ComputeNodesI
newComputeNode in interface ComputeNodesI<CellComputeCodeStore>#getComputeNode(int).public int size()
ComputeNodesI
size in interface ComputeNodesI<CellComputeCodeStore>public int numberOfSPUs()
public CellPU[] toArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||