コード例 #1
0
        priority_spec = unpack_prio).complete()
    DUECA_fillpacker = dueca.FillPacker().param(
        buffer_size = bulk_max_size).complete()
    DUECA_fillunpacker = dueca.FillUnpacker().param(
        priority_spec = bulk_unpack_prio,
        buffer_size = bulk_max_size).complete()

### the packer manager keeps an inventory of all packers for transport to
### other nodes. The three arguments are a fill (bulk) packer, a normal packer
### and (if possible) a high_priority packer. One set per destination, here
### all referring to the same two packers
DUECA_packermanager = dueca.PackerManager()
if use_ip_comm:
    for i in range(no_of_nodes):
        DUECA_packermanager.param(
            add_set = dueca.PackerSet(
                DUECA_fillpacker, DUECA_packer, DUECA_packer).complete())
    DUECA_packermanager.complete()

###  4 _ The channel manager. From now on channel_using objects can
###      be created.
DUECA_channelmanager = dueca.ChannelManager().complete()

###  5 _ The ticker. A channel_using object! From now on
###      ticker_using objects can be created
DUECA_ticker = dueca.Ticker().param(
    base_increment = tick_base_increment,
    compatible_increment = tick_compatible_increment,
    time_step = tick_time_step,
    sync_mode = rt_sync_mode).complete()

###  6 _ communication hardware accessors. These may use the ticker
コード例 #2
0
ファイル: dueca_cnf.py プロジェクト: tblaha/DSKY_Daltons
    DUECA_packer = dueca.Packer().complete()
    DUECA_unpacker = dueca.Unpacker().param(
        priority_spec=unpack_prio).complete()
    DUECA_fillpacker = dueca.FillPacker().param(
        buffer_size=bulk_max_size).complete()
    DUECA_fillunpacker = dueca.FillUnpacker().param(
        priority_spec=bulk_unpack_prio, buffer_size=bulk_max_size).complete()

### the packer manager keeps an inventory of all packers for transport to
### other nodes. The three arguments are a fill (bulk) packer, a normal packer
### and (if possible) a high_priority packer. One set per destination, here
### all referring to the same two packers
DUECA_packermanager = dueca.PackerManager()
if use_ip_comm:
    for i in range(no_of_nodes):
        DUECA_packermanager.param(add_set=dueca.PackerSet(
            DUECA_fillpacker, DUECA_packer, DUECA_packer).complete())
    DUECA_packermanager.complete()

###  4 _ The channel manager. From now on channel_using objects can
###      be created.
DUECA_channelmanager = dueca.ChannelManager().complete()

###  5 _ The ticker. A channel_using object! From now on
###      ticker_using objects can be created
DUECA_ticker = dueca.Ticker().param(
    base_increment=tick_base_increment,
    compatible_increment=tick_compatible_increment,
    time_step=tick_time_step,
    sync_mode=rt_sync_mode).complete()

###  6 _ communication hardware accessors. These may use the ticker