pacman.model.partitioner_splitters package¶
Subpackages¶
- pacman.model.partitioner_splitters.abstract_splitters package
- Module contents
AbstractSplitterCommon
AbstractSplitterCommon.FIXED_ABOVE_MAX
AbstractSplitterCommon.FIX_ATOMS_RESET
AbstractSplitterCommon.MAX_BELOW_FIXED
AbstractSplitterCommon.create_machine_vertices()
AbstractSplitterCommon.get_in_coming_slices()
AbstractSplitterCommon.get_in_coming_vertices()
AbstractSplitterCommon.get_internal_multicast_partitions()
AbstractSplitterCommon.get_internal_sdram_partitions()
AbstractSplitterCommon.get_out_going_slices()
AbstractSplitterCommon.get_out_going_vertices()
AbstractSplitterCommon.get_same_chip_groups()
AbstractSplitterCommon.get_source_specific_in_coming_vertices()
AbstractSplitterCommon.governed_app_vertex
AbstractSplitterCommon.machine_vertices_for_recording()
AbstractSplitterCommon.reset_called()
AbstractSplitterCommon.set_governed_app_vertex()
- Module contents
Submodules¶
pacman.model.partitioner_splitters.splitter_reset module¶
Module contents¶
- class pacman.model.partitioner_splitters.SplitterExternalDevice[source]¶
Bases:
AbstractSplitterCommon
A splitter for handling external devices.
- create_machine_vertices(chip_counter)[source]¶
Method for specific splitter objects to override.
- Parameters:
chip_counter (ChipCounter) – counter of used chips
- get_in_coming_vertices(partition_id)[source]¶
Get machine post-vertices for a given partition.
The input vertices are the ones that will serve as target vertices for external edges.
Note
This method returns all that could be used for any source machine vertex in the given partition.
- Parameters:
partition_id (str) – The identifier of the incoming partition
- Return type:
- get_out_going_vertices(partition_id)[source]¶
Get machine pre-vertices.
The output vertices are the ones that will serve as source vertices for external edges.
- Parameters:
partition_id (str) – The identifier of the outgoing partition
- Return type:
- machine_vertices_for_recording(variable_to_record)[source]¶
Gets the machine vertices which are recording this variable.
- Parameters:
variable_to_record (str) – the variable to get machine vertices for.
- Returns:
list of machine vertices
- Return type:
iterable(MachineVertex)
- set_governed_app_vertex(app_vertex)[source]¶
Sets a application vertex to be governed by this splitter object. Once set it can’t be reset.
- Parameters:
app_vertex (ApplicationVertex) – the app vertex to govern
- Raises:
PacmanConfigurationException – if the app vertex has already been set.
- class pacman.model.partitioner_splitters.SplitterFixedLegacy[source]¶
Bases:
AbstractSplitterCommon
Splitter for old-style vertices.
- create_machine_vertices(chip_counter)[source]¶
Method for specific splitter objects to override.
- Parameters:
chip_counter (ChipCounter) – counter of used chips
- get_in_coming_vertices(partition_id)[source]¶
Get machine post-vertices for a given partition.
The input vertices are the ones that will serve as target vertices for external edges.
Note
This method returns all that could be used for any source machine vertex in the given partition.
- Parameters:
partition_id (str) – The identifier of the incoming partition
- Return type:
- get_out_going_vertices(partition_id)[source]¶
Get machine pre-vertices.
The output vertices are the ones that will serve as source vertices for external edges.
- Parameters:
partition_id (str) – The identifier of the outgoing partition
- Return type:
- machine_vertices_for_recording(variable_to_record)[source]¶
Gets the machine vertices which are recording this variable.
- Parameters:
variable_to_record (str) – the variable to get machine vertices for.
- Returns:
list of machine vertices
- Return type:
iterable(MachineVertex)
- set_governed_app_vertex(app_vertex)[source]¶
Sets a application vertex to be governed by this splitter object. Once set it can’t be reset.
- Parameters:
app_vertex (ApplicationVertex) – the app vertex to govern
- Raises:
PacmanConfigurationException – if the app vertex has already been set.
- class pacman.model.partitioner_splitters.SplitterOneAppOneMachine[source]¶
Bases:
AbstractSplitterCommon
Splitter that handles
AbstractOneAppOneMachineVertex
vertices.- create_machine_vertices(chip_counter)[source]¶
Method for specific splitter objects to override.
- Parameters:
chip_counter (ChipCounter) – counter of used chips
- get_in_coming_vertices(partition_id)[source]¶
Get machine post-vertices for a given partition.
The input vertices are the ones that will serve as target vertices for external edges.
Note
This method returns all that could be used for any source machine vertex in the given partition.
- Parameters:
partition_id (str) – The identifier of the incoming partition
- Return type:
- get_out_going_vertices(partition_id)[source]¶
Get machine pre-vertices.
The output vertices are the ones that will serve as source vertices for external edges.
- Parameters:
partition_id (str) – The identifier of the outgoing partition
- Return type:
- machine_vertices_for_recording(variable_to_record)[source]¶
Gets the machine vertices which are recording this variable.
- Parameters:
variable_to_record (str) – the variable to get machine vertices for.
- Returns:
list of machine vertices
- Return type:
iterable(MachineVertex)
- set_governed_app_vertex(app_vertex)[source]¶
Sets a application vertex to be governed by this splitter object. Once set it can’t be reset.
- Parameters:
app_vertex (ApplicationVertex) – the app vertex to govern
- Raises:
PacmanConfigurationException – if the app vertex has already been set.
- class pacman.model.partitioner_splitters.SplitterOneToOneLegacy[source]¶
Bases:
AbstractSplitterCommon
- create_machine_vertices(chip_counter)[source]¶
Method for specific splitter objects to override.
- Parameters:
chip_counter (ChipCounter) – counter of used chips
- get_in_coming_vertices(partition_id)[source]¶
Get machine post-vertices for a given partition.
The input vertices are the ones that will serve as target vertices for external edges.
Note
This method returns all that could be used for any source machine vertex in the given partition.
- Parameters:
partition_id (str) – The identifier of the incoming partition
- Return type:
- get_out_going_vertices(partition_id)[source]¶
Get machine pre-vertices.
The output vertices are the ones that will serve as source vertices for external edges.
- Parameters:
partition_id (str) – The identifier of the outgoing partition
- Return type:
- machine_vertices_for_recording(variable_to_record)[source]¶
Gets the machine vertices which are recording this variable.
- Parameters:
variable_to_record (str) – the variable to get machine vertices for.
- Returns:
list of machine vertices
- Return type:
iterable(MachineVertex)
- set_governed_app_vertex(app_vertex)[source]¶
Sets a application vertex to be governed by this splitter object. Once set it can’t be reset.
- Parameters:
app_vertex (ApplicationVertex) – the app vertex to govern
- Raises:
PacmanConfigurationException – if the app vertex has already been set.