Re: [OMPI users] Working directory isn't set properly on Linux cluster

2008-06-23 Thread Todd Gamblin
That would be nice -- it might prevent morons like me from getting it wrong. Repeatedly :-). -Todd On Jun 23, 2008, at 6:58 AM, Jeff Squyres wrote: We don't have a strong desire to fix this in 1.2.7 -- especially since you're the first person ever to run across this issue. :-) Looks lik

Re: [OMPI users] Working directory isn't set properly on Linux cluster

2008-06-23 Thread Jeff Squyres
We don't have a strong desire to fix this in 1.2.7 -- especially since you're the first person ever to run across this issue. :-) Looks like this is easy enough to put into v1.3, though. On Jun 23, 2008, at 9:52 AM, Todd Gamblin wrote: Thanks for pointing this out (I'm not sure how I got t

Re: [OMPI users] Working directory isn't set properly on Linux cluster

2008-06-23 Thread Todd Gamblin
Thanks for pointing this out (I'm not sure how I got that wrong in the test) -- making the test program do the right thing gives: (merle):test$ mpirun -np 4 test before MPI_Init: PWD:/home/tgamblin getcwd: /home/tgamblin/test before MPI_Init: PWD:/home/tgamblin

Re: [OMPI users] Working directory isn't set properly on Linux cluster

2008-06-23 Thread Jeff Squyres
I think the issue here is that your test app is checking $PWD, not getcwd(). If you call getcwd(), you'll get the right answer (see my tests below). But your point is noted that perhaps OMPI should be setting PWD to the correct value before launching the user app. [5:01] svbu-mpi:~/tmp %

[OMPI users] Working directory isn't set properly on Linux cluster

2008-06-22 Thread Todd Gamblin
I'm having trouble getting OpenMPI to set the working directory properly when running jobs on a Linux cluster. I made a test program (at end of post) that recreates the problem pretty well by just printing out the results of getcwd(). Here's output both with and without using -wdir: (m