>From your requirements I gather that you want to run a program 1 within which
you want to invoke program2, and program 2 has to run on four nodes.
You will have to use MPI_Comm_spawn for that. You will start with your first
program 1 as a normal MPI program with "mpirun" and make it to run on only one
node. Then within this program you will have to do a MPI_Comm_spawn to run
program 2 on 4 nodes (the number of nodes supplied as a parameter to
MPI_Comm_spawn)
You can read the man page of MPI_Comm_spawn for more information.
Hope this helps
-Vishal Sahay
(Graduate Student, CS Dept.
Indiana University, Bloomington)
*************************************
>Date: Thu, 18 Apr 2002 08:33:26 -0700 (PDT)
>From: eren ozgul <mail2eren_at_[hidden]>
>To: lam_at_[hidden]
>MIME-Version: 1.0
>Subject: LAM: help
>X-BeenThere: lam_at_[hidden]
>X-Mailman-Version: 2.0.8
>List-Help: <mailto:lam-request_at_[hidden]?subject=help>
>List-Post: <mailto:lam_at_[hidden]>
>List-Subscribe: <http://www.lam-mpi.org/mailman/listinfo.cgi/lam>,
<mailto:lam-request_at_[hidden]?subject=subscribe>
>List-Id: General LAM/MPI mailing list <lam.lam-mpi.org>
>List-Unsubscribe: <http://www.lam-mpi.org/mailman/listinfo.cgi/lam>,
<mailto:lam-request_at_[hidden]?subject=unsubscribe>
>
>Hi there,
>
>I have a very unique question,
>If I have a file, say file1, this file calls another
>file, say, file2. Now file2 has a parallelazible
>program.How will I run file1 and when the call to
>file2 is made the code in file2 runs on 4 different
>processors?
>
>Thanks for your help.
>
>Eren A. Ozgul
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>_______________________________________________
>This list is archived at http://www.lam-mpi.org/MailArchives/lam/
-Vishal Sahay
(Graduate Student, CS Dept.
Indiana University, Bloomington)
*************************************
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/
|