StarPU Internal Handbook
starpu_mpi_nmad_backend.h
Go to the documentation of this file.
1/* StarPU --- Runtime system for heterogeneous multicore architectures.
2 *
3 * Copyright (C) 2009-2022 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
17#ifndef __STARPU_MPI_NMAD_BACKEND_H__
18#define __STARPU_MPI_NMAD_BACKEND_H__
19
20#include <common/config.h>
22
25#ifdef __cplusplus
26extern "C"
27{
28#endif
29
30#ifdef STARPU_USE_MPI_NMAD
31
32#include <nm_sendrecv_interface.h>
33#include <nm_session_interface.h>
34#include <nm_mpi_nmad.h>
35
37{
38 nm_gate_t gate;
39 nm_session_t session;
40 nm_sr_request_t data_request;
41 piom_cond_t req_cond;
42
43 int posted; // with coop, only one request is really posted, we need to know if the request was really posted to possibly free data
44 int has_received_data; // tell if request went through _starpu_mpi_handle_received_data() to release write lock
45 int finalized; // tell if _starpu_mpi_handle_request_termination() was called, so starpu_mpi_test() and starpu_mpi_wait() have to free the request
46 int to_destroy; // tell if starpu_mpi_wait() or starpu_mpi_test() was called before _starpu_mpi_handle_request_termination() and thus this last function will have to free the request
47 struct _starpu_spinlock finalized_to_destroy_lock;
48
50 struct nm_data_s unknown_datatype_data; // will contain size of the datatype and data itself
51 struct iovec unknown_datatype_v[2];
52};
53
54#endif // STARPU_USE_MPI_NMAD
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif // __STARPU_MPI_NMAD_BACKEND_H__
struct nm_data_s unknown_datatype_data
Definition: starpu_mpi_nmad_backend.h:50
Definition: starpu_mpi_mpi_backend.h:59
Definition: starpu_spinlock.h:82