NewMadeleine

Documentation

« back to PM2 home.
nm_mpi_topo.h
Go to the documentation of this file.
1/*
2 * NewMadeleine
3 * Copyright (C) 2006-2024 (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_TOPO_H
18#define NM_MPI_TOPO_H
19
21/* @{ */
22
24/* @{ */
25
26int MPI_Dims_create(int nnodes, int ndims, int*dims);
27
28int MPI_Cart_create(MPI_Comm comm_old, int ndims, const int*dims, const int*periods, int reorder, MPI_Comm*_comm_cart);
29
30int MPI_Cart_coords(MPI_Comm comm, int rank, int ndims, int*coords);
31
32int MPI_Cart_rank(MPI_Comm comm, const int*coords, int*rank);
33
34int MPI_Cart_shift(MPI_Comm comm, int direction, int displ, int*source, int*dest);
35
36int MPI_Cart_get(MPI_Comm comm, int maxdims, int*dims, int*periods, int*coords);
37
38int MPI_Cart_sub(MPI_Comm comm, const int*remain_dims, MPI_Comm*newcomm);
39
40int MPI_Topo_test(MPI_Comm comm, int*topo_type);
41
42int MPI_Cartdim_get(MPI_Comm comm, int*ndims);
43
44
45/* @}*/
46/* @}*/
47
48#endif /* NM_MPI_COMMUNICATOR_H */
int MPI_Cart_get(MPI_Comm comm, int maxdims, int *dims, int *periods, int *coords)
int MPI_Topo_test(MPI_Comm comm, int *topo_type)
int MPI_Cart_rank(MPI_Comm comm, const int *coords, int *rank)
int MPI_Cart_create(MPI_Comm comm_old, int ndims, const int *dims, const int *periods, int reorder, MPI_Comm *_comm_cart)
int MPI_Cartdim_get(MPI_Comm comm, int *ndims)
int MPI_Cart_coords(MPI_Comm comm, int rank, int ndims, int *coords)
int MPI_Cart_sub(MPI_Comm comm, const int *remain_dims, MPI_Comm *newcomm)
int MPI_Cart_shift(MPI_Comm comm, int direction, int displ, int *source, int *dest)
int MPI_Dims_create(int nnodes, int ndims, int *dims)
int MPI_Comm
Communicator handle.