def __init__(self, machine, connections):
     AbstractMultiConnectionProcess.__init__(
         self, connections,
         MultiConnectionProcessMostDirectConnectionSelector(
             machine, connections))
     self._connections = connections
     self._base_address = None
    def __init__(self,
                 connection_selector,
                 ignore_chips,
                 ignore_cores,
                 max_core_id,
                 max_sdram_size=None):
        """
        :param scamp_connections: The connections to use for the interaction
        :type scamp_connections: iterable of\
                    :py:class:`spinnman.connections.abstract_classes.abstract_connection.AbstractConnection`
        """
        AbstractMultiConnectionProcess.__init__(self, connection_selector)

        self._ignore_chips = ignore_chips
        self._ignore_cores = ignore_cores
        self._max_core_id = max_core_id
        self._max_sdram_size = max_sdram_size

        # A dictionary of (x, y) -> ChipInfo
        self._chip_info = dict()

        # The machine so far
        self._machine = Machine([])

        # A dictionary of which link goes where from a chip:
        # (x, y, link) -> (x, y)
        self._link_destination = dict()

        # A queue of ChipInfo to be examined
        self._search = deque()
    def __init__(self, machine, connections):
        AbstractMultiConnectionProcess.__init__(
            self, connections,
            MultiConnectionProcessMostDirectConnectionSelector(
                machine, connections))

        self._cpu_info = list()
 def __init__(self, connections, app_id=None,
              next_connection_selector=None):
     AbstractMultiConnectionProcess.__init__(
         self, connections,
         next_connection_selector=next_connection_selector)
     self._entries = [None] * _N_ENTRIES
     self._app_id = app_id
Exemple #5
0
 def __init__(self, machine, connections):
     AbstractMultiConnectionProcess.__init__(
         self, connections,
         MultiConnectionProcessMostDirectConnectionSelector(
             machine, connections))
     self._tag_info = None
     self._tags = None
 def __init__(self, machine, connections):
     AbstractMultiConnectionProcess.__init__(
         self, connections,
         MultiConnectionProcessMostDirectConnectionSelector(
             machine, connections))
     self._control_register = None
     self._error_status = None
     self._register_values = [0] * _N_REGISTERS
 def __init__(self, machine, connections, connection_selector=None,
              n_retries=3, timeout=0.5):
     if connection_selector is None:
         connection_selector = \
             MultiConnectionProcessMostDirectConnectionSelector(
                 machine, connections)
     AbstractMultiConnectionProcess.__init__(
         self, connections, connection_selector, n_retries=n_retries,
         timeout=timeout)
     self._response = None
    def __init__(self, connection_selector):
        AbstractMultiConnectionProcess.__init__(self, connection_selector)

        # A dictionary of (x, y, p) -> OrderedDict(n) -> bytearray
        self._iobuf = defaultdict(OrderedDict)

        # A dictionary of (x, y, p) -> OrderedDict(n) -> memoryview
        self._iobuf_view = defaultdict(OrderedDict)

        # A list of extra reads that need to be done as a result of the first
        # read = list of (x, y, p, n, base_address, size, offset)
        self._extra_reads = list()

        # A list of next reads that need to be done as a result of the first
        # read = list of (x, y, p, n, next_address, first_read_size)
        self._next_reads = list()
    def __init__(self, machine, connections, next_connection_selector=None):
        AbstractMultiConnectionProcess.__init__(
            self, connections, next_connection_selector)
        self._connections = connections
        self._machine = machine

        # A dictionary of (x, y, p) -> OrderedDict(n) -> bytearray
        self._iobuf = defaultdict(OrderedDict)

        # A dictionary of (x, y, p) -> OrderedDict(n) -> memoryview
        self._iobuf_view = defaultdict(OrderedDict)

        # A list of extra reads that need to be done as a result of the first
        # read = list of (x, y, p, n, base_address, size, offset)
        self._extra_reads = list()

        # A list of next reads that need to be done as a result of the first
        # read = list of (x, y, p, n, next_address, first_read_size)
        self._next_reads = list()
    def __init__(self, scamp_connections, ignore_chips, ignore_cores, max_core_id):
        """
        :param scamp_connections: The connections to use for the interaction
        :type scamp_connections: iterable of\
                    :py:class:`spinnman.connections.abstract_classes.abstract_connection.AbstractConnection`
        """
        AbstractMultiConnectionProcess.__init__(self, scamp_connections)

        self._ignore_chips = ignore_chips
        self._ignore_cores = ignore_cores
        self._max_core_id = max_core_id

        # A dictionary of (x, y) -> ChipInfo
        self._chip_info = dict()

        # The machine so far
        self._machine = Machine([])

        # A dictionary of which link goes where from a chip:
        # (x, y, link) -> (x, y)
        self._link_destination = dict()

        # A queue of ChipInfo to be examined
        self._search = deque()
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self,
                                             connection_selector,
                                             n_channels=1,
                                             intermediate_channel_waits=0)
Exemple #12
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._dpri_status = None
 def __init__(self, machine, connections):
     AbstractMultiConnectionProcess.__init__(
         self, connections,
         MultiConnectionProcessMostDirectConnectionSelector(
             machine, connections))
     self._dpri_status = None
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._control_register = None
     self._error_status = None
     self._register_values = [0] * _N_REGISTERS
Exemple #15
0
 def __init__(self, connection_selector, app_id=None):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._entries = [None] * _N_ENTRIES
     self._app_id = app_id
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
 def __init__(self, connections, next_connection_selector=None):
     AbstractMultiConnectionProcess.__init__(
         self, connections, next_connection_selector,
         n_channels=1, intermediate_channel_waits=0)
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._no_blocks_freed = None
Exemple #19
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._tag_info = None
     self._tags = None
 def __init__(self, connection_selector, n_retries=3, timeout=0.5):
     AbstractMultiConnectionProcess.__init__(self,
                                             connection_selector,
                                             n_retries=n_retries,
                                             timeout=timeout)
     self._response = None
 def __init__(self, connections, next_connection_selector=None):
     AbstractMultiConnectionProcess.__init__(self, connections, next_connection_selector)
     self._view = None
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._cpu_info = list()
Exemple #23
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._base_address = None
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._progress_bar = None