NewMadeleine

Documentation

« back to PM2 home.
nm_mpi_nmad.h
Go to the documentation of this file.
1/*
2 * NewMadeleine
3 * Copyright (C) 2006-2022 (see AUTHORS file)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program 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. See the GNU
13 * General Public License for more details.
14 */
15
16
17#ifndef NM_MPI_NMAD_H
18#define NM_MPI_NMAD_H
19
20#include <nm_public.h>
22#include <nm_coll_interface.h>
23#include <mpi.h>
24
31
34
37
39void nm_mpi_nmad_data_get(struct nm_data_s*p_data, void*ptr, MPI_Datatype datatype, int count);
40
43
46#endif /* NM_MPI_NMAD_H */
nm_session_t nm_mpi_nmad_session(MPI_Comm comm)
get session from MPI communicator
void nm_mpi_nmad_data_get(struct nm_data_s *p_data, void *ptr, MPI_Datatype datatype, int count)
build a nm_data from MPI data in ptr, datatype, count
void nm_mpi_nmad_data_release(MPI_Datatype datatype)
release refcount for given datatype
void nm_mpi_nmad_dest(nm_session_t *p_session, nm_gate_t *p_gate, MPI_Comm comm, int rank)
get session & gate from MPI communicator & rank
nm_comm_t nm_mpi_comm(MPI_Comm comm)
get NewMadeleine communicator from MPI communicator
standard MPI public header
static nm_session_t p_session
static nm_gate_t p_gate
nm_mpi_count_t count
number of elements to be exchanged
int MPI_Comm
Communicator handle.
int MPI_Datatype
Datatype handle.
This is the common public header for NewMad.
a data descriptor, used to pack/unpack data from app layout to/from contiguous buffers
Definition nm_data.h:196
Connection to another process.
Definition nm_gate.h:104