pacman.model.partitioner_interfaces package

Module contents

class pacman.model.partitioner_interfaces.AbstractSplitterPartitioner[source]

Bases: object

Splitter API to allow other Partitioner’s to add more stuff to the edge creation process.

This makes sure that the methods the superclass expects to be there are not removed.

class pacman.model.partitioner_interfaces.LegacyPartitionerAPI[source]

Bases: object

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

static abstract_methods()[source]

Exposes the abstract methods and properties defined in this class.

:rtype frozenset(str)

create_machine_vertex(vertex_slice, sdram, label=None)[source]

Create a machine vertex from this application vertex.

Parameters:
  • vertex_slice (Slice) – The slice of atoms that the machine vertex will cover.
  • sdram (AbstractSDRAM) – The SDRAM used by the machine vertex.
  • label (str or None) – human readable label for the machine vertex
Returns:

The created machine vertex

Return type:

MachineVertex

get_sdram_used_by_atoms(vertex_slice)[source]

Get the separate SDRAM requirements for a range of atoms.

Parameters:vertex_slice (Slice) – the low value of atoms to calculate resources from
Return type:AbstractSDRAM