A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to fix CI
[simgrid.git]
/
examples
/
s4u
/
async-ready
/
s4u-async-ready.cpp
diff --git
a/examples/s4u/async-ready/s4u-async-ready.cpp
b/examples/s4u/async-ready/s4u-async-ready.cpp
index 8bebb5087b19984adf1fcadc0f63ded2c099a496..68f1242148db5bd892be11680a84c1164a925e9b 100644
(file)
--- a/
examples/s4u/async-ready/s4u-async-ready.cpp
+++ b/
examples/s4u/async-ready/s4u-async-ready.cpp
@@
-25,12
+25,12
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_async_ready, "Messages specific for this s4u example");
XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_async_ready, "Messages specific for this s4u example");
-static
int
peer(int argc, char** argv)
+static
void
peer(int argc, char** argv)
{
xbt_assert(argc == 5, "Expecting 4 parameters from the XML deployment file but got %d", argc);
int my_id = std::stoi(argv[1]); /* - my id */
{
xbt_assert(argc == 5, "Expecting 4 parameters from the XML deployment file but got %d", argc);
int my_id = std::stoi(argv[1]); /* - my id */
- long messages_count = std::stol(argv[2]); /* - number of
tasks
*/
- double msg_size = std::stol(argv[3]); /* -
communication cost
in bytes */
+ long messages_count = std::stol(argv[2]); /* - number of
message
*/
+ double msg_size = std::stol(argv[3]); /* -
message size
in bytes */
long peers_count = std::stod(argv[4]); /* - number of peers */
/* Set myself as the persistent receiver of my mailbox so that messages start flowing to me as soon as they are put into it */
long peers_count = std::stod(argv[4]); /* - number of peers */
/* Set myself as the persistent receiver of my mailbox so that messages start flowing to me as soon as they are put into it */
@@
-90,7
+90,6
@@
static int peer(int argc, char** argv)
simgrid::s4u::Comm::wait_all(&pending_comms);
XBT_INFO("Goodbye now!");
simgrid::s4u::Comm::wait_all(&pending_comms);
XBT_INFO("Goodbye now!");
- return 0;
}
}