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
Merge branch 'master' into actor-priority
[simgrid.git]
/
src
/
smpi
/
internals
/
smpi_deployment.cpp
diff --git
a/src/smpi/internals/smpi_deployment.cpp
b/src/smpi/internals/smpi_deployment.cpp
index
3d88598
..
407fe67
100644
(file)
--- a/
src/smpi/internals/smpi_deployment.cpp
+++ b/
src/smpi/internals/smpi_deployment.cpp
@@
-4,9
+4,9
@@
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "simgrid/msg.h" /* barrier */
#include "SmpiHost.hpp"
#include "SmpiHost.hpp"
-#include "private.h"
+#include "private.hpp"
+#include "simgrid/msg.h" /* barrier */
#include "smpi_comm.hpp"
#include <map>
#include "smpi_comm.hpp"
#include <map>
@@
-61,7
+61,7
@@
void SMPI_app_instance_register(const char *name, xbt_main_func_t code, int num_
static int already_called = 0;
if (not already_called) {
already_called = 1;
static int already_called = 0;
if (not already_called) {
already_called = 1;
- for (auto& item : simgrid::s4u::host_list) {
+ for (auto
const
& item : simgrid::s4u::host_list) {
simgrid::s4u::Host* host = item.second;
host->extension_set(new simgrid::smpi::SmpiHost(host));
}
simgrid::s4u::Host* host = item.second;
host->extension_set(new simgrid::smpi::SmpiHost(host));
}
@@
-113,7
+113,7
@@
msg_bar_t smpi_deployment_finalization_barrier(const char* instance_id)
}
void smpi_deployment_cleanup_instances(){
}
void smpi_deployment_cleanup_instances(){
- for (auto& item : smpi_instances) {
+ for (auto
const
& item : smpi_instances) {
Instance instance = item.second;
if (instance.comm_world != MPI_COMM_NULL)
delete instance.comm_world->group();
Instance instance = item.second;
if (instance.comm_world != MPI_COMM_NULL)
delete instance.comm_world->group();