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
[SMPI] Remove function declaration from smpi_bench.cpp
[simgrid.git]
/
src
/
smpi
/
smpi_bench.cpp
diff --git
a/src/smpi/smpi_bench.cpp
b/src/smpi/smpi_bench.cpp
index
c69d32c
..
dfc02f1
100644
(file)
--- a/
src/smpi/smpi_bench.cpp
+++ b/
src/smpi/smpi_bench.cpp
@@
-230,8
+230,6
@@
void smpi_execute(double duration)
}
}
}
}
-void smpi_switch_data_segment(int dest);
-
void smpi_bench_begin(void)
{
if (smpi_privatize_global_variables) {
void smpi_bench_begin(void)
{
if (smpi_privatize_global_variables) {
@@
-608,9
+606,9
@@
void* smpi_shared_set_call(const char* func, const char* input, void* data) {
/** Map a given SMPI privatization segment (make a SMPI process active) */
/** Map a given SMPI privatization segment (make a SMPI process active) */
-void smpi_switch_data_segment(int dest){
- if (smpi_loaded_page
==dest)//no need to switch either
- return;
+void smpi_switch_data_segment(int dest)
{
+ if (smpi_loaded_page
== dest)//no need to switch, we've already loaded the one we want
+
return;
// So the job:
smpi_really_switch_data_segment(dest);
// So the job:
smpi_really_switch_data_segment(dest);