[OMPI users] printing text fixes a problem?

2011-02-01 Thread abc def
Hello, I'm having trouble with some MPI programming in Fortran, using openmpi. It seems that my program doesn't work unless I print some unrelated text to the screen. For example, if I have this situation: *** hundreds of lines cut *** IF (irank .eq. 0) THEN CALL print_results1(variable)

Re: [OMPI users] running externalprogram on same processor (Fortran)

2010-03-19 Thread abc def
not wait for each other with the following commands: CALL MPI_BARRIER(MPI_COMM_WORLD,ierr) ! in parent CALL MPI_BARRIER(MPI_COMM_WORLD,ierr) ! in child To: us...@open-mpi.org From: treum...@us.ibm.com List-Post: users@lists.open-mpi.org Date: Wed, 17 Mar 2010 13:25:03 -0400 Subject: Re: [OMPI users] r

Re: [OMPI users] running externalprogram on same processor (Fortran)

2010-03-16 Thread abc def
Hello, Following advice on other branches of this thread, I've managed to get to the point where I can spawn the second program. I've also managed to ensure that I'm running in an open-mpi environment during the testing. I would like to run my next steps by everyone in case anyone with more e

Re: [OMPI users] running externalprogram on same processor (Fortran)

2010-03-11 Thread abc def
Thank you very much for the examples. I tried the following program, based on the guidance here and additional information I found through google: --- PROGRAM mpitest1 IMPLICIT none CHARACTER*6 :: dir CHARACTER*1 :: crank ! MPI parameters INCLUDE 'mpif.h' INTEGER :

Re: [OMPI users] running externalprogram on same processor (Fortran)

2010-03-06 Thread abc def
Thanks for your kind help so far. Following your suggestions I've been trying to figure out MPI_COMM_SPAWN, but it's at the edge of my understanding so it's not easy. I read that the changing of directories can be achieved using info keys, however these are very cryptic: I can't seem to find a

Re: [OMPI users] running external program on same processor (Fortran)

2010-03-05 Thread abc def
org Subject: Re: [OMPI users] running external program on same processor (Fortran) How are you trying to start this external program? With an MPI_Comm_spawn? Or are you just fork/exec'ing it? How are you waiting for this external program to finish? On Mar 5, 2010, at 7:52 AM, abc

Re: [OMPI users] running external program on same processor (Fortran)

2010-03-05 Thread abc def
I as this mailing list is for the latter. We could have directed you to the appropriate place if we had known. On Mar 3, 2010, at 5:17 AM, abc def wrote:I don't know (I'm a little new to this area), but I figured out how to get around the problem: Using SGE and MVAPICH2, the "-env M

Re: [OMPI users] running external program on same processor (Fortran)

2010-03-03 Thread abc def
his is the problem of the scheduler that your system uses, > rather than MPI? > > > On Wed, 2010-03-03 at 00:48 +, abc def wrote: > > Hello, > > > > I wonder if someone can help. > > > > The situation is that I have an MPI-parallel fortran program. I

[OMPI users] running external program on same processor (Fortran)

2010-03-02 Thread abc def
Hello, I wonder if someone can help. The situation is that I have an MPI-parallel fortran program. I run it and it's distributed on N cores, and each of these processes must call an external program. This external program is also an MPI program, however I want to run it in serial, on the co