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
metaxml example modifications
[simgrid.git]
/
src
/
smpi
/
smpi_util.c
diff --git
a/src/smpi/smpi_util.c
b/src/smpi/smpi_util.c
index
396863c
..
71946a8
100644
(file)
--- a/
src/smpi/smpi_util.c
+++ b/
src/smpi/smpi_util.c
@@
-1,10
+1,13
@@
#include "private.h"
#include "private.h"
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_util, smpi, "Logging specific to SMPI (utilities)");
+
int smpi_gettimeofday(struct timeval *tv, struct timezone *tz)
{
double now;
int smpi_gettimeofday(struct timeval *tv, struct timezone *tz)
{
double now;
- int retval
= 0
;
+ int retval;
smpi_bench_end();
smpi_bench_end();
+ retval = 0;
if (NULL == tv) {
retval = -1;
} else {
if (NULL == tv) {
retval = -1;
} else {
@@
-27,6
+30,7
@@
unsigned int smpi_sleep(unsigned int seconds)
SIMIX_mutex_lock(smpi_global->execute_mutex);
SIMIX_mutex_lock(smpi_global->execute_mutex);
+ // FIXME: explicit conversion to double?
action = SIMIX_action_sleep(host, seconds);
SIMIX_register_action_to_condition(action, smpi_global->execute_cond);
action = SIMIX_action_sleep(host, seconds);
SIMIX_register_action_to_condition(action, smpi_global->execute_cond);
@@
-43,9
+47,7
@@
unsigned int smpi_sleep(unsigned int seconds)
void smpi_exit(int status)
{
smpi_bench_end();
void smpi_exit(int status)
{
smpi_bench_end();
- SIMIX_mutex_lock(smpi_global->running_hosts_count_mutex);
- smpi_global->running_hosts_count--;
- SIMIX_mutex_unlock(smpi_global->running_hosts_count_mutex);
+ smpi_mpi_finalize();
SIMIX_process_kill(SIMIX_process_self());
return;
}
SIMIX_process_kill(SIMIX_process_self());
return;
}