spinn_front_end_common.utilities.reload package


spinn_front_end_common.utilities.reload.reload module

class spinn_front_end_common.utilities.reload.reload.Reload(machine_name, version, bmp_details, down_chips, down_cores, auto_detect_bmp, enable_reinjection, scamp_connection_data, boot_port_num, reset_machine_on_start_up, max_sdram_per_chip, router_tables, iptags, reverse_iptags, app_data_runtime_folder, dsg_targets, exec_dse_on_host, dse_app_id, buffered_tags, buffered_placements, wait_for_read_confirmation, database_socket_addresses, database_file_path, send_start_notification, executable_targets, app_id, runtime, time_scale_factor, total_machine_timesteps, time_threshold, running=True, loading=True)[source]

Bases: object

Reload functions for reload scripts

spinn_front_end_common.utilities.reload.reload_buffered_vertex module

class spinn_front_end_common.utilities.reload.reload_buffered_vertex.ReloadBufferedVertex(label, region_files_tuples)[source]

Bases: spinn_front_end_common.interface.buffer_management.buffer_models.sends_buffers_from_host_pre_buffered_impl.SendsBuffersFromHostPreBufferedImpl

A Buffered sending vertex when using reload

  • label – The label of the vertex
  • region_files_tuples – A dictionary of region id -> file name

spinn_front_end_common.utilities.reload.reload_routing_table module

class spinn_front_end_common.utilities.reload.reload_routing_table.ReloadRoutingTable[source]

Bases: object

A routing table to be reloaded

static reload(routing_table_file_name)[source]

Reload a routing table via a pickled filename

Parameters:routing_table_file_name – the file name for the pickled routing table
static store(binary_directory, routing_table)[source]

Store a routing table in pickled form

  • binary_directory
  • routing_table

spinn_front_end_common.utilities.reload.reload_script module

class spinn_front_end_common.utilities.reload.reload_script.ReloadScript(machine_name, version, bmp_details, down_chips, down_cores, auto_detect_bmp, enable_reinjection, scamp_connection_data, boot_port_num, reset_machine_on_start_up, max_sdram_per_chip, app_data_runtime_folder, exec_dse_on_host, dse_app_id, wait_for_read_confirmation, database_file_path, send_start_notification, app_id, runtime, time_scale_factor, total_machine_timesteps, time_threshold)[source]

Bases: object

Generates a script for reloading a simulation

add_buffered_vertex(vertex, iptag, placement, buffered_files)[source]

Add a buffered vertex to be reloaded

  • vertex – the buffered vertex to be used in reload purposes
  • iptag – the iptag being used by this vertex
  • placement – the placement object for this vertex
  • buffered_files – a list of file paths by region for this vertex

A dictionary of region -> filename for the vertex

add_dsg_target(x, y, p, file_path)[source]

Add a Data Specification Generated file to be reloaded

  • x – The x-coordinate of the chip of the target
  • y – The y-coordinate of the chip of the target
  • p – The processor id of the target
  • file_path – The path of the DSG program to execute
add_executable_target(binary, core_subsets)[source]

Add an executable target to be reloaded

  • binary – The binary to be reloaded
  • core_subsets – The cores on which to load the binary

Add an iptag to be reloaded

Parameters:iptag – the iptag object to be loaded.
Return type:None

Add a reverse ip tag to be reloaded

Parameters:reverse_ip_tag – the reverse iptag to be loaded.
Return type:None

Add a routing table to be reloaded

Parameters:routing_table – the routing table to reload
Return type:None

Store a socket address for database usage

Parameters:socket_address – the socket addresses to be stored by the reload
Return type:None

Finish writing the reload script

Module contents