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
add time injection in MPI_Wtime and MPI_Test, to match what was done in iprobe
[simgrid.git]
/
src
/
smpi
/
smpi_pmpi.c
diff --git
a/src/smpi/smpi_pmpi.c
b/src/smpi/smpi_pmpi.c
index
b278f07
..
8659ec4
100644
(file)
--- a/
src/smpi/smpi_pmpi.c
+++ b/
src/smpi/smpi_pmpi.c
@@
-127,15
+127,7
@@
int PMPI_Abort(MPI_Comm comm, int errorcode)
double PMPI_Wtime(void)
{
double PMPI_Wtime(void)
{
- double time;
- if (smpi_process_initialized() && !smpi_process_finalized() && !smpi_process_get_sampling()) {
- smpi_bench_end();
- time = SIMIX_get_clock();
- smpi_bench_begin();
- } else {
- time = SIMIX_get_clock();
- }
- return time;
+ return smpi_wtime();
}
extern double sg_maxmin_precision;
}
extern double sg_maxmin_precision;