MPI 程序中的内存分配
如何在从节点中分配内存来执行 MPI 程序?从节点如何知道要保留的内存量?当从节点找不到它想要访问的数据时会发生什么?
这不是一个家庭作业问题,而是我尝试过的一个问题出现在我的脑海中,但在谷歌上找不到
How is memory allocated in slave nodes for execution of MPI programs ? How do slave nodes know the amount of memory to reserve ? What happens when a slave node can't find the data that it wants to access ?
This is not a homework problem , but a question that I tried came up in my mind and could'nt find on googling
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于非特定问题,您可以期望的最佳答案也将是非特定的
当使用 MPI 编程时,您通常编写一个程序,该程序在一组上启动(通过 mpirun/mpiexec 或某些批处理系统,例如扭矩)。笔记。
主从模型只是一种方法。
内存分配通常受程序控制,就像您在任何应用程序中根据需要分配内存一样,在 MPI 程序中也是如此。
至于寻找数据,通常是(直接或间接)提供给他们的(由大师
如果使用主从模型,则为进程)。如果确实每个 MPI 实例都必须“搜索”它要处理的数据,那么与任何无法找到所需内容的程序一样,它应该将合适的错误消息/状态发送回调用者(或主程序)过程)
.PMCD。
With a non-specific question, the best answer you can expect will also be non-specific
When programming using MPI you typically write a single program which is launched (via mpirun/mpiexec, or some batching system eg. torque) on a set of notes.
The master-slave model is but one approach.
The memory allocation is typically under program control, just as you would in any application allocate memory as needed, so to in your MPI program.
As to finding the data, it is often provided to them (directly or indirectly) (by the master
process, if the master-slave model is used). If indeed each MPI instance has to "search" for the data it is to be processing, then as with any program that is unable to find what it requires, it should send a suitable error message/status back to the caller (or the master process)
.PMCD.