spinn_front_end_common.abstract_models.impl package

Module contents

class spinn_front_end_common.abstract_models.impl.MachineAllocationController(thread_name)[source]

Bases: spinn_front_end_common.abstract_models.abstract_machine_allocation_controller.AbstractMachineAllocationController

How to manage the allocation of a machine so that it gets cleaned up neatly when the script dies.

close()[source]

Indicate that the use of the machine is complete.

class spinn_front_end_common.abstract_models.impl.MachineDataSpecableVertex(*args, **kwargs)[source]

Bases: spinn_front_end_common.abstract_models.abstract_generates_data_specification.AbstractGeneratesDataSpecification

Support for a vertex that simplifies generating a data specification.

generate_data_specification(*args, **kwargs)[source]

Generate a data specification.

Parameters:
  • spec (DataSpecificationGenerator) – The data specification to write to
  • placement (Placement) – the placement the vertex is located at
  • machine_graph (MachineGraph) – (Injected)
  • routing_info (RoutingInfo) – (Injected)
  • tags – (Injected)
  • machine_time_step – (Injected)
  • time_scale_factor – (Injected)
Return type:

None

generate_machine_data_specification(spec, placement, machine_graph, routing_info, iptags, reverse_iptags, machine_time_step, time_scale_factor)[source]
Parameters:
  • spec (DataSpecificationGenerator) – The data specification to write into.
  • placement (Placement) – Where this node is on the SpiNNaker machine.
  • machine_graph (MachineGraph) – The graph containing this node.
  • routing_info (RoutingInfo) – The routing info.
  • iptags (iterable(IPTag) or None) – The (forward) IP tags for the vertex, if any
  • reverse_iptags (iterable(ReverseIPTag) or None) – The reverse IP tags for the vertex, if any
  • machine_time_step (int) – The machine time step
  • time_scale_factor (int) – The time step scaling factor
Return type:

None

class spinn_front_end_common.abstract_models.impl.ProvidesKeyToAtomMappingImpl[source]

Bases: spinn_front_end_common.abstract_models.abstract_provides_key_to_atom_mapping.AbstractProvidesKeyToAtomMapping

routing_key_partition_atom_mapping(*args, **kwargs)[source]

Returns a list of atom to key mapping.

Parameters:
Returns:

a iterable of tuples of atom IDs to keys.

Return type:

iterable(tuple(int,int))