⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topo.h

📁 mpi并行计算的c++代码 可用vc或gcc编译通过 可以用来搭建并行计算试验环境
💻 H
字号:
/* -*- 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -