Mohammad, where are you? which university?
Sorry I have not been keeping up with your problems but I will start
doing that once I clear cactuscode beta 13 release this friday. glad to
see a Mohammad on the mailing list. Thought I was the only one!
Regards
Yaakoub
On Wed, 2004-03-24 at 10:39, ELKANOUNI Mohammed wrote:
> The only way to detect if program is running is checking the running process
> by system command ps.
> You can use this command on your c program by using the c command int
> system(const char *string)
> For script program i have no idea.
> I hope this would be helpful for you
>
> <html><DIV>
> <DIV> </DIV></DIV></html>
>
>
>
>
>
> >From: Edwin Vollebregt <edwin.vollebregt_at_[hidden]>
> >Reply-To: General LAM/MPI mailing list <lam_at_[hidden]>
> >To: lam_at_[hidden]
> >Subject: LAM: Detecting whether MPI is running
> >Date: Wed, 24 Mar 2004 14:18:31 +0100
> >
> >
> >Hello,
> >
> >Does anyone have suggestions for the following situation:
> >
> >We have parallelized a program with PVM in such a way that the same
> >executable can be used for stand-alone sequential runs as well as for
> >master-slave parallel runs. Now we are porting to MPI.
> >
> >The application is started by a shell script with option -npart
> <xx>: number
> >of parts to be used in the decomposition.
> >
> > if [ $npart -le 1 ]; then
> > program.exe
> > else
> > mpiexec -machinefile ... -n 1 master.exe < config
> > # --> master starts the appropriate number of instances of
> program.exe
> > fi
> >
> >The problem is that calling MPI_Init in a sequential run kills the
> program
> >because LAM has not been booted.
> >
> >How can we detect whether MPI is running within the program ?
> >
> >This problem is similar to "detecting mpirun" on the archive
> of the
> >mailinglist. It is a slightly different scenario than the ones I found
> >there, so maybe there are different options.
> >
> >Any thoughts ?
> >
> >Thanks,
> > Edwin
> >--
> >
> _______________________________________________________________________
> >|
> |
> >| VORtech Computing
> |
> >|_______________________________________________________________________|
> >| experts in industrial computing
> |
> >| %""
> |
> >| %% %%%% dr.ir. E.A.H. Vollebregt
> |
> >| %% " %% phone
> +31(0)15-2850125 |
> >| %% % P.O. Box 260 fax +31(0)15-2850126
> |
> >| %% %% 2600 AG Delft web www.vortech.nl
> |
> >| %% %% the Netherlands edwin.vollebregt_at_[hidden]
> |
> >| %%%%%%
> |
> >| "" visit-address: Torenhove building, M.Nijhoflaan
> 2, Delft |
> >|_______________________________________________________________________|
> >
> >_______________________________________________
> >This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
> _________________________________________________________________
> MSN Search, le moteur de recherche qui pense comme vous !
> http://search.msn.fr/worldwide.asp
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
|