DeinoMPI Forum

Forum dedicated to discussing DeinoMPI
Welcome to DeinoMPI Forum Sign in | Join | Help
in Search

Mpi_Spawn how to

Last post 11-03-2008, 3:07 AM by admin. 1 replies.
Sort Posts: Previous Next
  •  10-30-2008, 11:20 AM 262

    Mpi_Spawn how to

    Hi,

    I have written an application(running just on my localhost) that make matrix operations using 1 master and 3 workes. I have done this with MPI 1.0 and so the number of processes was defined statically during the invocation

    example: mpirun -np 4 name_application.exe

    Now I'd like to know how use MPI_Comm_spawn(...) to split master and slaves codes. Please give me some help about syntax.
    regards by salvo
  •  11-03-2008, 3:07 AM 263 in reply to 262

    Re: Mpi_Spawn how to

    DeinoMPI comes with several examples that use the MPI-2 functions.  The parallel mandebrot generating code was implemented using MPI_Comm_spawn.  You can look at the pmandel_spawn project in the examples solution provided in the examples directory.  The pmandel_spawn.c source file shows a simple master/slave model.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems