starpu_mpi_ft.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2013-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. *
  5. * StarPU is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 2.1 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * StarPU is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. *
  14. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. */
  16. #ifndef FT_STARPU_STARPU_MPI_FT_H
  17. #define FT_STARPU_STARPU_MPI_FT_H
  18. struct _starpu_mpi_checkpoint_template;
  19. typedef struct _starpu_mpi_checkpoint_template* starpu_mpi_checkpoint_template;
  20. /**
  21. * Registers a checkpoint template \p cp_template with the given arguments.
  22. * It is then ready to use with ::starpu_mpi_checkpoint_template_submit during the program execution.
  23. * A unique checkpoint id \p cp_id is requested from the user in order to
  24. * match with a corresponding ::starpu_mpi_init_from_checkpoint.
  25. *
  26. * The arguments following the cp_template and the checkpoint_id can be of the following types:
  27. * <ul>
  28. * <li> ::STARPU_R followed by a data handle and the backup rank;
  29. * <li> ::STARPU_DATA_ARRAY followed by an array of data handles,
  30. * its number of elements and a backup rank;
  31. * <li> ::STARPU_VALUE followed by a pointer to the unregistered value,
  32. * its size in bytes and a backup rank.
  33. * <li> The argument list must be ended by the value 0.
  34. * </ul>
  35. */
  36. int starpu_mpi_checkpoint_template_register(starpu_mpi_checkpoint_template* cp_template, int cp_id, ...);
  37. #endif //FT_STARPU_STARPU_MPI_FT_H