starpu_mpi_early_request.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 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. #endif
  27. void _starpu_mpi_early_request_init(void);
  28. void _starpu_mpi_early_request_free(void);
  29. int _starpu_mpi_early_request_count(void);
  30. void _starpu_mpi_early_request_check_termination(void);
  31. void _starpu_mpi_early_request_enqueue(struct _starpu_mpi_req *req);
  32. struct _starpu_mpi_req* _starpu_mpi_early_request_dequeue(int data_tag, int source, MPI_Comm comm);
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif /* __STARPU_MPI_EARLY_REQUEST_H__ */