starpu_mpi_checkpoint.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2014-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_CHECKPOINT_H
  17. #define FT_STARPU_STARPU_MPI_CHECKPOINT_H
  18. #include <starpu_mpi.h>
  19. #include <common/list.h>
  20. #include <starpu_mpi_private.h>
  21. #ifdef __cplusplus
  22. extern "C"
  23. {
  24. #endif
  25. extern int _my_rank;
  26. struct _starpu_mpi_cp_ack_msg
  27. {
  28. int checkpoint_id;
  29. int klm;
  30. int checkpoint_instance;
  31. };
  32. struct _starpu_mpi_cp_info_msg
  33. {
  34. int checkpoint_id;
  35. int checkpoint_instance;
  36. int validation:1;
  37. int discard:1;
  38. };
  39. struct _starpu_mpi_cp_ack_arg_cb
  40. {
  41. int rank;
  42. starpu_data_handle_t handle;
  43. starpu_data_handle_t copy_handle;
  44. int type;
  45. int count;
  46. starpu_mpi_tag_t tag;
  47. struct _starpu_mpi_cp_ack_msg msg;
  48. int cache_flag;
  49. };
  50. struct _starpu_mpi_cp_discard_arg_cb
  51. {
  52. int rank;
  53. struct _starpu_mpi_cp_info_msg msg;
  54. };
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif //FT_STARPU_STARPU_MPI_CHECKPOINT_H