Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix: correct trace mask checking
[simgrid.git] / src / smpi / smpi_util.c
1 #include "private.h"
2
3 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_util, smpi,
4                                 "Logging specific to SMPI (utilities)");
5
6 /*
7 int smpi_gettimeofday(struct timeval *tv, struct timezone *tz)
8 {
9   double now;
10   int retval;
11   smpi_bench_end();
12   retval = 0;
13   if (NULL == tv) {
14     retval = -1;
15   } else {
16     now = SIMIX_get_clock();
17     tv->tv_sec = now;
18     tv->tv_usec = ((now - (double) tv->tv_sec) * 1000000.0);
19   }
20   smpi_bench_begin();
21   return retval;
22 }
23
24 unsigned int smpi_sleep(unsigned int seconds)
25 {
26   smx_host_t host;
27   smx_action_t action;
28
29   smpi_bench_end();
30   host = SIMIX_host_self();
31   action = SIMIX_action_sleep(host, (double)seconds);
32   smpi_process_wait_action(action);
33   SIMIX_action_destroy(action);
34   smpi_bench_begin();
35   return 0;
36 }
37
38 void smpi_exit(int status)
39 {
40   smpi_bench_end();
41   smpi_process_finalize();
42   SIMIX_process_kill(SIMIX_process_self());
43   return;
44 }
45 */