Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8129fda0e5663241b1aa64b9af59351cf4c89f1c
[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 #define sleep(x) smpi_sleep(x)
13 #if _POSIX_TIMERS > 0
14 #define nanosleep(x, y) smpi_nanosleep(x, y)
15 #endif
16 #define usleep(x) smpi_usleep(x)
17
18 #include <smpi/smpi.h>
19 #include <xbt/sysdep.h>
20 #include <xbt/log.h>
21 #include <xbt/asserts.h>
22 #include <simgrid/modelchecker.h>
23
24 #include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
25 #define gettimeofday(x, y) smpi_gettimeofday(x, NULL)
26 #if _POSIX_TIMERS > 0
27 #define clock_gettime(x, y) smpi_clock_gettime(x, y)
28 #endif
29 #if HAVE_MC
30 #undef assert
31 #define assert(x) MC_assert(x)
32 #endif
33
34 #ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */
35 #include <smpi/smpi_extended_traces.h>
36 #endif
37
38 #endif