12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /* StarPU --- Runtime system for heterogeneous multicore architectures.
- *
- * Copyright (C) 2013-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
- *
- * StarPU is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or (at
- * your option) any later version.
- *
- * StarPU is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * See the GNU Lesser General Public License in COPYING.LGPL for more details.
- */
- #ifndef FT_STARPU_STARPU_MPI_FT_SERVICE_COMMS_H
- #define FT_STARPU_STARPU_MPI_FT_SERVICE_COMMS_H
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- int _ft_service_msg_recv_send_common(void* ptr, int count, int rank, int tag, int req_type, MPI_Comm comm, void (*callback)(void *), void* arg);
- inline int _ft_service_msg_isend_cb(void* msg, int count, int rank, int tag, MPI_Comm comm, void (*callback)(void *), void* arg)
- {
- return _ft_service_msg_recv_send_common(msg, count, rank, tag, SEND_REQ, comm, callback, arg);
- }
- inline int _ft_service_msg_irecv_cb(void* msg, int count, int rank, int tag, MPI_Comm comm, void (*callback)(void *), void* arg)
- {
- return _ft_service_msg_recv_send_common(msg, count, rank, tag, RECV_REQ, comm, callback, arg);
- }
- void starpu_mpi_test_ft_detached_service_requests(void);
- int starpu_mpi_ft_service_lib_init();
- int starpu_mpi_ft_service_lib_busy();
- #ifdef __cplusplus
- }
- #endif
- #endif //FT_STARPU_STARPU_MPI_FT_SERVICE_COMMS_H
|