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
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
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
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 %
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