fmmpi.h

来自「基于linux环境的ns2多机并行仿真补丁」· C头文件 代码 · 共 40 行

H
40
字号
/*---------------------------------------------------------------------------*//* FM-like interface for MPI communication.                                  *//* Author(s): Kalyan Perumalla <http://www.cc.gatech.edu/~kalyan> 10Jan2005  *//* $Revision: 1.4 $ $Name: v26apr05 $ $Date: 2005/04/26 14:46:39 $ *//*---------------------------------------------------------------------------*/#ifndef __FMMPI_FM_H#define __FMMPI_FM_H/*---------------------------------------------------------------------------*/#define FMMPIMAXPE 3000 /*CUSTOMIZE*/#define FMMPIMAXPIECES 16#define FMMPIMAXDATALEN 256#define FMMPIMAXPIECELEN FMMPIMAXDATALEN/*---------------------------------------------------------------------------*/typedef void FMMPI_stream;/*---------------------------------------------------------------------------*/typedef int FMMPICallback(int, FMMPI_stream *, int, int, int);/*---------------------------------------------------------------------------*/void FMMPI_pre_initialize(int *, char ***);void FMMPI_initialize(int, int, FMMPICallback *);void FMMPI_finalize(void);FMMPI_stream *FMMPI_begin_message(int, int, int, int, int);void FMMPI_send_piece(FMMPI_stream *, void *, int);void FMMPI_end_message(FMMPI_stream *);int FMMPI_receive(void *, FMMPI_stream *, unsigned int);int FMMPI_numpieces(FMMPI_stream *);int FMMPI_piecelen(FMMPI_stream *, int);int FMMPI_extract(unsigned int maxbytes);int FMMPI_debug_level(int);/*---------------------------------------------------------------------------*/extern int FMMPI_nodeid;extern int FMMPI_numnodes;/*---------------------------------------------------------------------------*/#endif /* __FMMPI_FM_H */

⌨️ 快捷键说明

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