starpu_mpi_early_request.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2009, 2010-2014 Université de Bordeaux
  4. * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 CNRS
  5. *
  6. * StarPU is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU Lesser General Public License as published by
  8. * the Free Software Foundation; either version 2.1 of the License, or (at
  9. * your option) any later version.
  10. *
  11. * StarPU is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. *
  15. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. */
  17. #ifndef __STARPU_MPI_EARLY_REQUEST_H__
  18. #define __STARPU_MPI_EARLY_REQUEST_H__
  19. #include <starpu.h>
  20. #include <stdlib.h>
  21. #include <mpi.h>
  22. #include <common/config.h>
  23. #include <common/list.h>
  24. #ifdef __cplusplus
  25. extern "C"
  26. {
  27. #endif
  28. void _starpu_mpi_early_request_init(void);
  29. void _starpu_mpi_early_request_shutdown(void);
  30. int _starpu_mpi_early_request_count(void);
  31. void _starpu_mpi_early_request_check_termination(void);
  32. void _starpu_mpi_early_request_enqueue(struct _starpu_mpi_req *req);
  33. struct _starpu_mpi_req* _starpu_mpi_early_request_dequeue(starpu_mpi_tag_t data_tag, int source, MPI_Comm comm);
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif /* __STARPU_MPI_EARLY_REQUEST_H__ */