spinn_front_end_common.utilities.utility_objs.extra_monitor_scp_processes package¶
Module contents¶
-
class
spinn_front_end_common.utilities.utility_objs.extra_monitor_scp_processes.
ClearQueueProcess
(next_connection_selector, n_retries=10, timeout=1.0, n_channels=8, intermediate_channel_waits=7)[source]¶ Bases:
spinnman.processes.abstract_multi_connection_process.AbstractMultiConnectionProcess
How to send messages to clear the reinjection queue.
Parameters: - next_connection_selector (AbstractMultiConnectionProcessConnectionSelector) – How to choose the connection.
- n_retries (int) – The number of retries of a message to use. Passed to
SCPRequestPipeLine
- timeout (float) – The timeout, in seconds. Passed to
SCPRequestPipeLine
- n_channels (int) – The maximum number of channels to use when talking to a particular
SCAMP instance. Passed to
SCPRequestPipeLine
- intermediate_channel_waits (int) – The maximum number of outstanding message/reply pairs to have on a
particular connection. Passed to
SCPRequestPipeLine
-
reset_counters
(core_subsets)[source]¶ Parameters: core_subsets (CoreSubsets) –
-
class
spinn_front_end_common.utilities.utility_objs.extra_monitor_scp_processes.
LoadApplicationMCRoutesProcess
(next_connection_selector, n_retries=10, timeout=1.0, n_channels=8, intermediate_channel_waits=7)[source]¶ Bases:
spinnman.processes.abstract_multi_connection_process.AbstractMultiConnectionProcess
How to send messages to load the saved application multicast routing tables.
Parameters: - next_connection_selector (AbstractMultiConnectionProcessConnectionSelector) – How to choose the connection.
- n_retries (int) – The number of retries of a message to use. Passed to
SCPRequestPipeLine
- timeout (float) – The timeout, in seconds. Passed to
SCPRequestPipeLine
- n_channels (int) – The maximum number of channels to use when talking to a particular
SCAMP instance. Passed to
SCPRequestPipeLine
- intermediate_channel_waits (int) – The maximum number of outstanding message/reply pairs to have on a
particular connection. Passed to
SCPRequestPipeLine
-
load_application_mc_routes
(core_subsets)[source]¶ Parameters: core_subsets (CoreSubsets) – sets of cores to send command to
-
class
spinn_front_end_common.utilities.utility_objs.extra_monitor_scp_processes.
LoadSystemMCRoutesProcess
(next_connection_selector, n_retries=10, timeout=1.0, n_channels=8, intermediate_channel_waits=7)[source]¶ Bases:
spinnman.processes.abstract_multi_connection_process.AbstractMultiConnectionProcess
How to send messages to load the configured system multicast routing tables (and save the application routing tables).
Parameters: - next_connection_selector (AbstractMultiConnectionProcessConnectionSelector) – How to choose the connection.
- n_retries (int) – The number of retries of a message to use. Passed to
SCPRequestPipeLine
- timeout (float) – The timeout, in seconds. Passed to
SCPRequestPipeLine
- n_channels (int) – The maximum number of channels to use when talking to a particular
SCAMP instance. Passed to
SCPRequestPipeLine
- intermediate_channel_waits (int) – The maximum number of outstanding message/reply pairs to have on a
particular connection. Passed to
SCPRequestPipeLine
-
load_system_mc_routes
(core_subsets)[source]¶ Parameters: core_subsets (CoreSubsets) – sets of cores to send command to
-
class
spinn_front_end_common.utilities.utility_objs.extra_monitor_scp_processes.
ReadStatusProcess
(next_connection_selector, n_retries=10, timeout=1.0, n_channels=8, intermediate_channel_waits=7)[source]¶ Bases:
spinnman.processes.abstract_multi_connection_process.AbstractMultiConnectionProcess
How to send messages to read the status of extra monitors.
Parameters: - next_connection_selector (AbstractMultiConnectionProcessConnectionSelector) – How to choose the connection.
- n_retries (int) – The number of retries of a message to use. Passed to
SCPRequestPipeLine
- timeout (float) – The timeout, in seconds. Passed to
SCPRequestPipeLine
- n_channels (int) – The maximum number of channels to use when talking to a particular
SCAMP instance. Passed to
SCPRequestPipeLine
- intermediate_channel_waits (int) – The maximum number of outstanding message/reply pairs to have on a
particular connection. Passed to
SCPRequestPipeLine
-
get_reinjection_status_for_core_subsets
(core_subsets)[source]¶ Parameters: core_subsets (CoreSubsets) – Return type: dict(tuple(int,int), ReInjectionStatus)
-
class
spinn_front_end_common.utilities.utility_objs.extra_monitor_scp_processes.
ResetCountersProcess
(next_connection_selector, n_retries=10, timeout=1.0, n_channels=8, intermediate_channel_waits=7)[source]¶ Bases:
spinnman.processes.abstract_multi_connection_process.AbstractMultiConnectionProcess
How to send messages to clear the reinjection state counters.
Parameters: - next_connection_selector (AbstractMultiConnectionProcessConnectionSelector) – How to choose the connection.
- n_retries (int) – The number of retries of a message to use. Passed to
SCPRequestPipeLine
- timeout (float) – The timeout, in seconds. Passed to
SCPRequestPipeLine
- n_channels (int) – The maximum number of channels to use when talking to a particular
SCAMP instance. Passed to
SCPRequestPipeLine
- intermediate_channel_waits (int) – The maximum number of outstanding message/reply pairs to have on a
particular connection. Passed to
SCPRequestPipeLine
-
reset_counters
(core_subsets)[source]¶ Parameters: core_subsets (CoreSubsets) –
-
class
spinn_front_end_common.utilities.utility_objs.extra_monitor_scp_processes.
SetPacketTypesProcess
(next_connection_selector, n_retries=10, timeout=1.0, n_channels=8, intermediate_channel_waits=7)[source]¶ Bases:
spinnman.processes.abstract_multi_connection_process.AbstractMultiConnectionProcess
How to send messages to control what messages are reinjected.
Parameters: - next_connection_selector (AbstractMultiConnectionProcessConnectionSelector) – How to choose the connection.
- n_retries (int) – The number of retries of a message to use. Passed to
SCPRequestPipeLine
- timeout (float) – The timeout, in seconds. Passed to
SCPRequestPipeLine
- n_channels (int) – The maximum number of channels to use when talking to a particular
SCAMP instance. Passed to
SCPRequestPipeLine
- intermediate_channel_waits (int) – The maximum number of outstanding message/reply pairs to have on a
particular connection. Passed to
SCPRequestPipeLine
-
set_packet_types
(core_subsets, point_to_point, multicast, nearest_neighbour, fixed_route)[source]¶ Set what types of packets should be reinjected.
Parameters: - core_subsets (CoreSubsets) – sets of cores to send command to
- point_to_point (bool) – If point-to-point should be set
- multicast (bool) – If multicast should be set
- nearest_neighbour (bool) – If nearest neighbour should be set
- fixed_route (bool) – If fixed route should be set
-
class
spinn_front_end_common.utilities.utility_objs.extra_monitor_scp_processes.
SetRouterTimeoutProcess
(next_connection_selector, n_retries=10, timeout=1.0, n_channels=8, intermediate_channel_waits=7)[source]¶ Bases:
spinnman.processes.abstract_multi_connection_process.AbstractMultiConnectionProcess
How to send messages to set router timeouts. These messages need to be sent to cores running the extra monitor binary.
Note
SCAMP sets wait2 to zero by default!
Note
Timeouts are specified in a weird floating point format. See the SpiNNaker datasheet for details.
Parameters: - next_connection_selector (AbstractMultiConnectionProcessConnectionSelector) – How to choose the connection.
- n_retries (int) – The number of retries of a message to use. Passed to
SCPRequestPipeLine
- timeout (float) – The timeout, in seconds. Passed to
SCPRequestPipeLine
- n_channels (int) – The maximum number of channels to use when talking to a particular
SCAMP instance. Passed to
SCPRequestPipeLine
- intermediate_channel_waits (int) – The maximum number of outstanding message/reply pairs to have on a
particular connection. Passed to
SCPRequestPipeLine
-
set_wait1_timeout
(mantissa, exponent, core_subsets)[source]¶ The wait1 timeout is the time from when a packet is received to when emergency routing becomes enabled.
Parameters: - mantissa (int) – Timeout mantissa (0 to 15)
- exponent (int) – Timeout exponent (0 to 15)
- core_subsets (CoreSubsets) – Where the extra monitors that manage the routers are located.
-
set_wait2_timeout
(mantissa, exponent, core_subsets)[source]¶ The wait2 timeout is the time from when a packet has emergency routing enabled for it to when it is dropped.
Parameters: - mantissa (int) – Timeout mantissa (0 to 15)
- exponent (int) – Timeout exponent (0 to 15)
- core_subsets (CoreSubsets) – Where the extra monitors that manage the routers are located.