📄 chconfig.h
字号:
#ifndef CHCONFIG_H#define CHCONFIG_H// When MPID_HAS_HETERO is defined then you need to add chhetero.c to the project//#define MPID_HAS_HETERO#undef MPID_HAS_HETERO#undef MPID_PKT_MAX_DATA_SIZE#define MPID_PKT_MAX_DATA_SIZE 3000/* This makes chbrndv.c use memcpy for rendezvous messages to self */#define MPID_RNDV_SELF/* Turn on flow control *//* #define MPID_NO_FLOW_CONTROL */#ifndef MPID_NO_FLOW_CONTROL#define MPID_FLOW_CONTROL#endif#define MPID_HAS_PROC_INFO/* This is needed if you want TotalView to acquire all of the processes * automagically. * If it is defined you must also define * int MPID_getpid(int index, char **hostname, char **imagename); * which takes an index in COMM_WORLD and returns the pid of that process as a result, * and also fills in the pointers to the two strings hostname (something which we can * pass to inet_addr, and image_name which is the name of the executable running * that this process is running. * You can fill in either (or both) pointers as (char *)0 which means * "the same as the master process". *//* Put macro-definitions of routines here *///int nt_ipvishm_proc_info ANSI_ARGS(( int, char **, char ** ));#define MPID_getpid(i,n,e) nt_ipvishm_proc_info((i),(n),(e))/* Communicator initialization routines *//* Comm_msgrep determines the common representation format for members of the new communicator */#define MPID_CommInit(oldcomm,newcomm) MPID_CH_Comm_msgrep( newcomm )#define MPID_CommFree(comm) MPI_SUCCESS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -