Controlling node mapping of MPI_COMM_SPAWN

后端 未结 2 971
被撕碎了的回忆
被撕碎了的回忆 2021-01-26 00:57

The context:

This whole issue can be summarized that I\'m trying replicate the behaviour of a call to system (or fork), but in an mpi environ

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-26 01:21

    From the Open MPI MPI_Comm_spawn man page

       The following keys for info are recognized in Open MPI. (The reserved values mentioned in Section 5.3.4 of the MPI-2 standard are not implemented.)
    
       Key                    Type     Description
       ---                    ----     -----------
    
       host                   char *   Host on which the process should be
                                       spawned.  See the orte_host man
                                       page for an explanation of how this
                                       will be used.
    

    and you can use MPI_Get_processor_name() in order to get the hostname a MPI task is running on.

提交回复
热议问题