[mpich-discuss] how to dynamically schedule process in mpich

Zhou, Hui zhouh at anl.gov
Mon Nov 19 09:21:37 CST 2018


On Sun, Nov 18, 2018 at 10:33:48PM -0600, Shuwei Zhao wrote:
>2. About the MPI_Info object, I tried to use mpi_comm_spawn on the same
>machine, it can work. But I don't know how to spawn processes cross
>machines. For example, if I have 4 processes on machine 1, and I want to
>spawn 4 more processes on other machines (resource managed by qsub), how do
>I need to declare in the MPI_Info object?

Did you try setting the host parameter in the info object? For 
example:

    MPI_Info info;
    MPI_Info_create(&info, "host", "A,B,C");

    MPI_Comm_spawn("worker", MPI_ARGV_NULL, n_hosts, info, 0, 
MPI_COMM_SELF, &comm_workers, MPI_ERRCODES_IGNORE)?
    
    MPI_Info_free(&info);

Replace "A,B,C" with host name list that you want to spawn process on.

-- 
Hui Zhou



More information about the discuss mailing list