starpu_mpi_nmad.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 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 __STARPU_MPI_NMAD_H__
  17. #define __STARPU_MPI_NMAD_H__
  18. #include <starpu.h>
  19. #include <stdlib.h>
  20. #include <mpi.h>
  21. #include <common/config.h>
  22. #include <common/list.h>
  23. /** @file */
  24. #ifdef STARPU_USE_MPI_NMAD
  25. #ifdef __cplusplus
  26. extern "C"
  27. {
  28. #endif
  29. int _starpu_mpi_progress_init(struct _starpu_mpi_argc_argv *argc_argv);
  30. void _starpu_mpi_progress_shutdown(void **value);
  31. //#ifdef STARPU_SIMGRID
  32. //void _starpu_mpi_wait_for_initialization();
  33. //#endif
  34. int _starpu_mpi_barrier(MPI_Comm comm);
  35. int _starpu_mpi_wait_for_all(MPI_Comm comm);
  36. int _starpu_mpi_wait(starpu_mpi_req *public_req, MPI_Status *status);
  37. int _starpu_mpi_test(starpu_mpi_req *public_req, int *flag, MPI_Status *status);
  38. void _starpu_mpi_isend_size_func(struct _starpu_mpi_req *req);
  39. void _starpu_mpi_irecv_size_func(struct _starpu_mpi_req *req);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif /* STARPU_USE_MPI_NMAD */
  44. #endif /* __STARPU_MPI_NMAD_H__ */