Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
implement some more getters in surf::Link and s4u::Link
[simgrid.git] / include / smpi / mpi.h
1 /* Copyright (c) 2010-2014. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef MPI_H
8 #define MPI_H
9
10 #define SEED 221238
11
12 #include <smpi/smpi.h>
13 #include <xbt/sysdep.h>
14 #include <xbt/log.h>
15 #include <xbt/asserts.h>
16 #include <simgrid/modelchecker.h>
17
18 #include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
19
20 #define sleep(x) smpi_sleep(x)
21 #define usleep(x) smpi_usleep(x)
22 #define gettimeofday(x, y) smpi_gettimeofday(x, NULL)
23 #if _POSIX_TIMERS > 0
24 #define nanosleep(x, y) smpi_nanosleep(x, y)
25 #define clock_gettime(x, y) smpi_clock_gettime(x, y)
26 #endif
27 #if SIMGRID_HAVE_MC
28 #undef assert
29 #define assert(x) MC_assert(x)
30 #endif
31
32 #ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */
33 #include <smpi/smpi_extended_traces.h>
34 #endif
35
36 #endif