pacman.model.partitioner_interfaces package

Module contents

Legacy interfaces that vertices may implement to support splitters that work using the old model of partitioning.

class pacman.model.partitioner_interfaces.LegacyPartitionerAPI

Bases: object

API used by the vertices which don’t have their own splitters but use what master did before the self partitioning stuff came to be.

Warning

Subclasses of this class must also be subclasses of ApplicationVertex. This is not enforced because of issues with import order, but is required; PACMAN assumes it to be true.

static abstract_methods() FrozenSet[str][source]
Returns:

The abstract methods and properties defined in this class.

abstractmethod create_machine_vertex(vertex_slice: Slice, sdram: AbstractSDRAM, label: str | None = None) MachineVertex[source]

Create a machine vertex from this application vertex.

Parameters:
  • vertex_slice – The slice of atoms that the machine vertex will cover.

  • sdram – The SDRAM used by the machine vertex.

  • label – human readable label for the machine vertex

Returns:

The created machine vertex

abstractmethod get_sdram_used_by_atoms(vertex_slice: Slice) AbstractSDRAM[source]
Parameters:

vertex_slice – the low value of atoms to calculate resources from

Returns:

The separate SDRAM requirements for a range of atoms.