Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Lavocat
yggdrasil
Commits
988153f8
Commit
988153f8
authored
May 28, 2018
by
Thomas Lavocat
Browse files
Correct bug on waiting messages
parent
247e73a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
yggdrasil/erebor/ereborc.py
View file @
988153f8
...
...
@@ -178,9 +178,9 @@ class Erebor:
else
:
logger
.
warning
(
"need to buffer the message for later"
)
if
mpi_dnode
not
in
self
.
mpi_wait_route_msg
:
self
.
mpi_wait_route_msg
[
mpi_dnode
]
=
list
()
self
.
mpi_wait_route_msg
[
"{}@{}"
.
format
(
mpi_dnode
,
dnetowkrId
)
]
=
list
()
# buffer the message for later
self
.
mpi_wait_route_msg
[
mpi_dnode
].
append
([
self
.
mpi_wait_route_msg
[
"{}@{}"
.
format
(
mpi_dnode
,
dnetowkrId
)
].
append
([
mpi_dnode
,
dnetowkrId
,
mpi_snode
,
snetworkId
,
m
])
else
:
...
...
@@ -551,10 +551,10 @@ class Erebor:
rank
=
decoded_message
[
consts
.
RANK
]
self
.
mpi_routing_table
[
network
][
rank
]
=
local_from
if
rank
in
self
.
mpi_wait_route_msg
:
for
message
in
self
.
mpi_wait_route_msg
[
rank
]
:
for
message
in
self
.
mpi_wait_route_msg
[
"{}@{}"
.
format
(
rank
,
network
)
]
:
self
.
send_mpi_trans_network_message_to
(
message
[
0
],
message
[
1
],
message
[
2
],
message
[
3
],
message
[
4
])
del
self
.
mpi_wait_route_msg
[
rank
]
del
self
.
mpi_wait_route_msg
[
"{}@{}"
.
format
(
rank
,
network
)
]
# clean all registered mpi ranks associated with this network.
elif
decoded_message
[
consts
.
ACTION
]
==
consts
.
MPICLN
:
on_network
=
self
.
networks
.
get
(
decoded_message
[
consts
.
NETWORK
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment