コード例 #1
0
 def __init__(self, machine, connections):
     AbstractMultiConnectionProcess.__init__(
         self, connections,
         MultiConnectionProcessMostDirectConnectionSelector(
             machine, connections))
     self._connections = connections
     self._base_address = None
コード例 #2
0
    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()
コード例 #3
0
    def __init__(self, machine, connections):
        AbstractMultiConnectionProcess.__init__(
            self, connections,
            MultiConnectionProcessMostDirectConnectionSelector(
                machine, connections))

        self._cpu_info = list()
コード例 #4
0
 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
コード例 #5
0
ファイル: get_tags_process.py プロジェクト: Scaatis/SpiNNMan
 def __init__(self, machine, connections):
     AbstractMultiConnectionProcess.__init__(
         self, connections,
         MultiConnectionProcessMostDirectConnectionSelector(
             machine, connections))
     self._tag_info = None
     self._tags = None
コード例 #6
0
 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
コード例 #7
0
 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
コード例 #8
0
    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()
コード例 #9
0
    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()
コード例 #10
0
    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()
コード例 #11
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self,
                                             connection_selector,
                                             n_channels=1,
                                             intermediate_channel_waits=0)
コード例 #12
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._dpri_status = None
コード例 #13
0
 def __init__(self, machine, connections):
     AbstractMultiConnectionProcess.__init__(
         self, connections,
         MultiConnectionProcessMostDirectConnectionSelector(
             machine, connections))
     self._dpri_status = None
コード例 #14
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._control_register = None
     self._error_status = None
     self._register_values = [0] * _N_REGISTERS
コード例 #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
コード例 #16
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
コード例 #17
0
 def __init__(self, connections, next_connection_selector=None):
     AbstractMultiConnectionProcess.__init__(
         self, connections, next_connection_selector,
         n_channels=1, intermediate_channel_waits=0)
コード例 #18
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._no_blocks_freed = None
コード例 #19
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._tag_info = None
     self._tags = None
コード例 #20
0
 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
コード例 #21
0
 def __init__(self, connections, next_connection_selector=None):
     AbstractMultiConnectionProcess.__init__(self, connections, next_connection_selector)
     self._view = None
コード例 #22
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._cpu_info = list()
コード例 #23
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._base_address = None
コード例 #24
0
 def __init__(self, connection_selector):
     AbstractMultiConnectionProcess.__init__(self, connection_selector)
     self._progress_bar = None