Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simix] Add comments about the generic simcalls and rename them
[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
14 #include <smpi/smpi.h>
15 #include <xbt/sysdep.h>
16 #include <xbt/log.h>
17 #include <xbt/asserts.h>
18 #include <simgrid/modelchecker.h>
19
20 #include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
21 #define gettimeofday(x, y) smpi_gettimeofday(x, NULL)
22
23 #if HAVE_MC
24 #undef assert
25 #define assert(x) MC_assert(x)
26 #endif
27
28 #ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */
29 #include <smpi/smpi_extended_traces.h>
30 #endif
31
32 #endif