what are the models to distribute tasks in processes using openMPI?

て烟熏妆下的殇ゞ 提交于 2019-12-17 21:21:56

问题


The thing i want to ask from you is : i have several steps of a big source code (each step has a virtual computation time and virtual communication data,i am taking only virtual as i wants to model the latency and somehow i managed to measure them throughout the source code) . I need to test this by make the code sleep for the computation time and transferring the data equivalent to the communication data . Can you suggest some configuration models to the same ? My aim is to minimizing the overall execution time of the program and thus obviously i want to diminish the overhead that the process can have.

The simplest that strikes my mind are :


  1. Do the computation on all processes and send the virtual data by making asynchronous call to the root processes
  2. Do the same with Synchronous call .
  3. Assume the communication time is linear with the communication data . Use some algorithm to divide the tasks formerly to each process (inspired from load balancing)
  4. Start from the first task with the root process and sends data to the next process , do sleep on that process and show on.

can you please give me some idea or verify ,if this strategy makes a lot of difference ?

来源:https://stackoverflow.com/questions/17373970/what-are-the-models-to-distribute-tasks-in-processes-using-openmpi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!