starpu_mpi_cache.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2011, 2012, 2013, 2014 Centre National de la Recherche Scientifique
  4. * Copyright (C) 2011-2014 Université de Bordeaux
  5. * Copyright (C) 2014 INRIA
  6. *
  7. * StarPU is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU Lesser General Public License as published by
  9. * the Free Software Foundation; either version 2.1 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * StarPU is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. *
  16. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. */
  18. #ifndef __STARPU_MPI_CACHE_H__
  19. #define __STARPU_MPI_CACHE_H__
  20. #include <starpu.h>
  21. #include <stdlib.h>
  22. #include <mpi.h>
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. extern int _cache_enabled;
  27. void _starpu_mpi_cache_init(MPI_Comm comm);
  28. void *_starpu_mpi_already_received(int src, starpu_data_handle_t data, int mpi_rank);
  29. void *_starpu_mpi_already_sent(starpu_data_handle_t data, int dest);
  30. void _starpu_mpi_cache_flush_sent(MPI_Comm comm, starpu_data_handle_t data);
  31. void _starpu_mpi_cache_flush_recv(starpu_data_handle_t data, int me);
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif // __STARPU_MPI_CACHE_H__