pacman.operations.multi_cast_router_check_functionality package

Submodules

pacman.operations.multi_cast_router_check_functionality.valid_routes_checker module

Collection of functions which together validate routes.

class pacman.operations.multi_cast_router_check_functionality.valid_routes_checker.PlacementTuple(x, y, p)

Bases: tuple

Create new instance of PlacementTuple(x, y, p)

p

Alias for field number 2

x

Alias for field number 0

y

Alias for field number 1

pacman.operations.multi_cast_router_check_functionality.valid_routes_checker.validate_routes(machine_graph, placements, routing_infos, routing_tables, machine, graph_mapper=None)[source]

Go though the placements given and check that the routing entries within the routing tables support reach the correction destinations as well as not producing any cycles.

Parameters:
  • machine_graph – the graph
  • placements – the placements container
  • routing_infos – the routing info container
  • routing_tables – the routing tables generated by the routing algorithm
  • graph_mapper – the mapping between graphs or none if only using a machine graph
  • machine (spinn_machine.Machine object) – the python machine object
Return type:

None

Raises:

PacmanRoutingException – when either no routing table entry is found by the search on a given router, or a cycle is detected

Module contents

pacman.operations.multi_cast_router_check_functionality.validate_routes(machine_graph, placements, routing_infos, routing_tables, machine, graph_mapper=None)[source]

Go though the placements given and check that the routing entries within the routing tables support reach the correction destinations as well as not producing any cycles.

Parameters:
  • machine_graph – the graph
  • placements – the placements container
  • routing_infos – the routing info container
  • routing_tables – the routing tables generated by the routing algorithm
  • graph_mapper – the mapping between graphs or none if only using a machine graph
  • machine (spinn_machine.Machine object) – the python machine object
Return type:

None

Raises:

PacmanRoutingException – when either no routing table entry is found by the search on a given router, or a cycle is detected