topo.h

来自「fortran并行计算包」· C头文件 代码 · 共 43 行

H
43
字号
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* * *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */typedef struct MPIR_Graph_topology {  int nnodes;  int nedges;  int *index;  int *edges;} MPIR_Graph_topology;typedef struct MPIR_Cart_topology {  int nnodes;     /* Product of dims[*], gives the size of the topology */  int ndims;  int *dims;  int *periodic;  int *position;} MPIR_Cart_topology;typedef struct MPIR_Topology {   MPIR_Topo_type kind;  union topo {     MPIR_Graph_topology graph;    MPIR_Cart_topology  cart;  } topo;} MPIR_Topology;MPIR_Topology *MPIR_Topology_get( MPID_Comm * );int MPIR_Topology_put( MPID_Comm *, MPIR_Topology * );int MPIR_Cart_create( const MPID_Comm *, int, const int [], 		      const int [], int, MPI_Comm * );int MPIR_Graph_create( const MPID_Comm *, int, 		       const int[], const int[], int, 		       MPI_Comm *);int MPIR_Dims_create( int, int, int * );int MPIR_Graph_map( const MPID_Comm *, int, const int[], const int[], int* );int MPIR_Cart_map( const MPID_Comm *, int, const int[],  const int[], int* );#define MAX_CART_DIM 16

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?