Condor-G Example 6- Run An MPI Parallel Program


In this example we will submit an MPI program and run it on 4 processors.


Create a Condor submit file called example6.submit which contains the following lines:

executable = monte_pi_mpi
globusscheduler = beowulf2.dartmouth.edu/jobmanager
universe = globus
Arguments ='100000'
output = monte_pi.out
error = monte_pi.error
log = monte_pi.log
globusrsl=(jobType=mpi) (count=4)
queue


sierra:~>condor_submit example6.submit
Submitting job(s).
Logging submit event(s).
1 job(s) submitted to cluster 21.

sierra:~/Testing/VDT> condor_q -globus


-- Submitter: sierra.dartmouth.edu : <129.170.16.93:33505> : sierra.dartmouth.edu
ID OWNER STATUS MANAGER HOST EXECUTABLE
21.0 sas PENDING fork beowulf2.dartmouth /afs/northstar.dar

sierra:~> more monte_pi.out

rank = 2, # of iterations is 1000000
Processor 2 sending results= 785266 to master process
rank = 3, # of iterations is 1000000
Processor 3 sending results= 785040 to master process
rank = 1, # of iterations is 1000000
Processor 1 sending results= 785506 to master process
rank = 0, # of iterations is 1000000

# of trials= 4000000 , estimate of pi is 3.14173














Previous Top Next


CondorG_Example6.src  last modified Jun 8, 2005 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College