mpid_lpidmask.tex
来自「刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件」· TEX 代码 · 共 41 行
TEX
41 行
\startmanpage\mantitle{MPID{\tt \char`\_}Lpidmask}{tex}{10/7/2002}\manname{MPID{\tt \char`\_}Lpidmask}--- Description of the Processor mask data strucure \subhead{Synopsis}\startvb\begin{verbatim}typedef struct { /* other, device-specific information */ /* Typically int pidbits[MPID_MAX_PROCS_BY_INT] */} MPID_Lpidmask;\end{verbatim}\endvbAllows quick determination whether a designated processor is within theset of active processes.\parA typical implementation is a bitvector.\parThis is used to help manage datatypes for remote memory operations (forefficient implementation of {\tt MPI{\tt \char`\_}Put}, {\tt MPI{\tt \char`\_}Get}, or {\tt MPI{\tt \char`\_}Accumulate}when using nontrivial datatypes, it is necessary to cache a copy of thedatatype on the remote process. Using a processor mask makes it easy tocheck whether a remote process already has a copy of a particular MPIdatatype).\parNote that groups can not use processor masks because groups need orderinginformation (e.g., pid 0 might have rank in the group of 245).\parThis structure is manipulated with the routines:\begin{verbatim} void MPID_Lpid_set( MPID_Lpidmask *, int pid ) void MPID_Lpid_init( MPID_Lpidmask * ) int MPID_Lpid_isset( MPID_Lpidmask *, int pid ) int MPID_Lpid_nextset( MPID_Lpidmask *, int lastpid ) \end{verbatim}\par\subhead{Module}Group-DS\endmanpage
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?