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

📄 memory.tex

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻 TEX
字号:
\startmanpage\mantitle{Memory}{tex}{10/7/2002}\manname{Memory}--- Memory Management Routines \subhead{Rules for memory management}\parMPICH explicity prohibits the appearence of {\tt malloc}, {\tt free},{\tt calloc}, {\tt realloc}, or {\tt strdup} in any code implementing a device orMPI call (of course, users may use any of these calls in their code).Instead, you must use {\tt MPIU{\tt \char`\_}Malloc} etc.; if these are definedas {\tt malloc}, that is allowed, but an explicit use of {\tt malloc} instead of{\tt MPIU{\tt \char`\_}Malloc} in the source code is not allowed.  This restriction ismade to simplify the use of portable tools to test for memory leaks,overwrites, and other consistency checks.\parMost memory should be allocated at the time that {\tt MPID{\tt \char`\_}Init} iscalled and released with {\tt MPID{\tt \char`\_}Finalize} is called.  If at all possible,no other MPID routine should fail because memory could not be allocated(for example, because the user has allocated large arrays after {\tt MPI{\tt \char`\_}Init}).\parThe implementation of the MPI routines will strive to avoid memory allocationas well; however, operations such as {\tt MPI{\tt \char`\_}Type{\tt \char`\_}index} that create a newdata type that reflects data that must be copied from an array of arbitrarysize will have to allocate memory (and can fail; note that there is anMPI error class for out-of-memory).\par\subhead{Question}Do we want to have an aligned allocation routine?  E.g., one thataligns memory on a cache-line.\endmanpage

⌨️ 快捷键说明

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