spynnaker.pyNN.extra_algorithms package

Module contents

spynnaker.pyNN.extra_algorithms.delay_support_adder(app_graph)[source]

adds the delay extensions to the app graph, now that all the splitter objects have been set.

Parameters:app_graph (ApplicationGraph) – the app graph
spynnaker.pyNN.extra_algorithms.finish_connection_holders(application_graph)[source]

Finishes the connection holders after data has been generated within them, allowing any waiting callbacks to be called.

Parameters:application_graph (ApplicationGraph) –
class spynnaker.pyNN.extra_algorithms.GraphEdgeWeightUpdater[source]

Bases: object

Updates the weights of all edges.

__call__(machine_graph)[source]
Parameters:machine_graph (MachineGraph) – the machine_graph whose edges are to be updated
spynnaker.pyNN.extra_algorithms.on_chip_bitfield_generator(placements, app_graph, executable_finder, transceiver, machine_graph, routing_infos)[source]

Loads and runs the bit field generator on chip.

Parameters:
spynnaker.pyNN.extra_algorithms.redundant_packet_count_report()[source]
Returns:
class spynnaker.pyNN.extra_algorithms.SpYNNakerConnectionHolderGenerator[source]

Bases: object

Sets up connection holders for reports to use.

__call__(application_graph)[source]
Parameters:application_graph (ApplicationGraph) – app graph
Returns:the set of connection holders for after DSG generation
Return type:dict(tuple(ProjectionApplicationEdge, SynapseInformation), ConnectionHolder)
spynnaker.pyNN.extra_algorithms.spynnaker_data_specification_writer(placements, hostname, machine, app_id, data_n_timesteps)[source]

Executes data specification generation for sPyNNaker

Parameters:
  • placements (Placements) – placements of machine graph to cores
  • hostname (str) – SpiNNaker machine name
  • machine (Machine) – the python representation of the SpiNNaker machine
  • data_n_timesteps (int) – The number of timesteps for which data space will been reserved
Returns:

DSG targets (map of placement tuple and filename)

Return type:

tuple(DataSpecificationTargets, dict(tuple(int,int,int), int))

Raises:

ConfigurationException – If the DSG asks to use more SDRAM than is available.

spynnaker.pyNN.extra_algorithms.spynnaker_machine_bitField_pair_router_compressor(routing_tables, transceiver, machine, app_id, machine_graph, placements, executable_finder, routing_infos, executable_targets, read_expander_iobuf)[source]

entrance for routing table compression with bit field

Parameters:
  • routing_tables (MulticastRoutingTables) – routing tables
  • transceiver (Transceiver) – spinnman instance
  • machine (Machine) – spinnMachine instance
  • app_id (int) – app id of the application
  • machine_graph (MachineGraph) – machine graph
  • placements (Placements) – placements on machine
  • executable_finder (ExecutableFinder) – where are binaries are located
  • routing_infos (RoutingInfo) –
  • read_algorithm_iobuf (bool) – flag saying if read iobuf
  • read_expander_iobuf (bool) – reads the synaptic expander iobuf.
spynnaker.pyNN.extra_algorithms.spynnaker_machine_bitfield_ordered_covering_compressor(routing_tables, transceiver, machine, app_id, machine_graph, placements, executable_finder, routing_infos, executable_targets, read_expander_iobuf)[source]

entrance for routing table compression with bit field

Parameters:
  • routing_tables (MulticastRoutingTables) – routing tables
  • transceiver (Transceiver) – spinnman instance
  • machine (Machine) – spinnMachine instance
  • app_id (int) – app id of the application
  • machine_graph (MachineGraph) – machine graph
  • placements (Placements) – placements on machine
  • executable_finder (ExecutableFinder) – where are binaries are located
  • routing_infos (RoutingInfo) –
  • read_algorithm_iobuf (bool) – flag saying if read iobuf
  • read_expander_iobuf (bool) – reads the synaptic expander iobuf.
spynnaker.pyNN.extra_algorithms.spynnaker_neuron_graph_network_specification_report(application_graph)[source]

Produces a report describing the graph created from the neural populations and projections.

Parameters:
  • report_folder (str) – the report folder to put figure into
  • application_graph (ApplicationGraph) – the app graph
class spynnaker.pyNN.extra_algorithms.SpYNNakerSynapticMatrixReport[source]

Bases: object

Generate the synaptic matrices for reporting purposes.

__call__(connection_holder, dsg_targets)[source]

Convert synaptic matrix for every application edge.

Parameters:
spynnaker.pyNN.extra_algorithms.synapse_expander(placements, transceiver, executable_finder, extract_iobuf)[source]

Run the synapse expander.

Note

Needs to be done after data has been loaded.

Parameters:
  • placements (Placements) – Where all vertices are on the machine.
  • transceiver (Transceiver) – How to talk to the machine.
  • executable_finder (ExecutableFinder) – How to find the synapse expander binaries.
  • extract_iobuf (bool) – flag for extracting iobuf