1 /* Copyright (c) 2007-2018. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
10 #include <smpi/smpi.h>
12 #define AMPI_CALL(type, name, args) \
13 type A##name args __attribute__((weak)); \
17 #define malloc(nbytes) _sampi_malloc(nbytes)
18 #define free(ptr) _sampi_free(ptr)
23 XBT_PUBLIC void* _sampi_malloc(size_t size);
24 XBT_PUBLIC void _sampi_free(void* ptr);
26 AMPI_CALL(XBT_PUBLIC int, MPI_Iteration_in, (MPI_Comm comm))
27 AMPI_CALL(XBT_PUBLIC int, MPI_Iteration_out, (MPI_Comm comm))
28 AMPI_CALL(XBT_PUBLIC void, MPI_Migrate, (MPI_Comm comm))