Device Topology
An XCENA device groups its compute resources into Subs, clusters, and MU cores. A Job reserves Subs, while the runtime distributes tasks across their cores.
Hierarchy
flowchart TD
Device[XCENA Device]
Device --> Sub0[Sub 0]
Device --> SubN[Sub N]
Sub0 --> Cluster0[Cluster 0]
Sub0 --> ClusterM[Cluster M]
SubN --> SubNDots[same structure]
Cluster0 --> Core0[MU core 0]
Cluster0 --> CoreK[MU core k]
| Layer | What it is |
|---|---|
| Sub | The unit of compute reservation. A Job is created with a number of Subs and owns them for its lifetime. |
| Cluster | A group of MU cores inside a Sub that share an L2 cache. |
| MU core | A RISC-V execution unit inside a Cluster. This is the smallest scheduling unit - each MU core runs your kernel function, and mu::getTaskIdx() is observed here. |
Resource counts vary by device generation. Query the device topology instead of assuming a fixed number of cores.
How parallelism maps onto the hierarchy
When you launch a Map:
- The
Jobprovides a pool of MU cores (across all Subs the Job owns). - PXL distributes the launch’s tasks across those cores.
- Each MU core invokes your kernel function once per task it received.
The unit of distribution is the MU core, not the Sub.
numSubonly sets the size of the available core pool. See Kernel Execution for howtaskCountandbatchSizeinteract with this pool.
The next page introduces the host-side objects you use to reserve Subs, load kernels, and launch work onto this hierarchy.
→ Related: Programming Objects, Kernel Execution