CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Sgimpi (https://www.cfd-online.com/Forums/openfoam/89836-sgimpi.html)

pere July 12, 2011 03:44

ppuigdom@pirineus:/tmp/ppuigdom/snappy24_2/snappy24>`which mpirun` -np 2 `which foamExec` bash -c "ls -l"
0 constant log processor0 processor1 processor2 processor3 processor4 processor5 processor6 processor7 processor8 processor9 system
MPI: could not run executable (case #3)
MPI: No details available, no log files found
Matat
ppuigdom@pirineus:/tmp/ppuigdom/snappy24_2/snappy24>`which mpirun` -np 2 `which foamExec` `which bash` -c "ls -l"
0 constant log processor0 processor1 processor2 processor3 processor4 processor5 processor6 processor7 processor8 processor9 system
MPI: could not run executable (case #3)
MPI: No details available, no log files found
Matat

wyldckat July 12, 2011 17:49

Hi Pere,

It saddens me to say (write) this... but I don't know how to fix this problem :(
I don't have access to a system that has SGIMPI and therefore I can't compare such installation to your installation :(

The last advices I can think of are:
  • Try to send environment variables to the remote call. In OpenMPI we can do this by running with the -x argument, which stands for:
    Quote:

    -x <arg0>
    Export an environment variable, optionally specifying a value (e.g., "-x foo" exports the environment variable foo and takes its value from the current environment; "-x foo=bar" exports the environment variable name foo and sets its value to "bar" in the started processes)
    For example:
    Code:

    `which mpirun` -np 2 -x PATH -x LD_LIBRARY_PATH `which bash` -c "ls -l"
    With OpenMPI, this would send the two most relevant variables to the remote call, where PATH is the list of paths where binaries exist and LD_LIBRARY_PATH is the list of paths to where libraries are.
    You'll have to find such option in SGIMPI.
  • Read the SGIMPI manual.
  • You can also try to contact your systems administrator or provider/supplier.
  • If all else fails, contact OpenCFD or Wikki!?
Best regards and good luck!
Bruno

pere July 13, 2011 04:25

Hi Bruno,

Thanks for all, but just one thing:

Now the error has changed....I put /dummy_ instead of /dummy__ and now the error is :

MPI: pirineus: 0x9d400004db872fa: buoyantBoussinesqPimpleFoam: symbol lookup error: /prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/mpt-2.03/lib/libPstreamMPI: pirineus: 0x9d400004db872fa: .so: undefined symbol: _ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb
MPI: could not run executable (case #4)
Matat

and when I made parallelTest:
parallelTest: symbol lookup error: /prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/mpt-2.03/lib/libPstream.so: undefined symbol: _ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb

Do you know something about this?

Thanks again

wyldckat July 13, 2011 15:48

Hi Pere,

:eek: This is getting weirder and weirder... but I think that the problem here is that it's expecting to find the dummy version to link to it :(

OK, when in doubt, lets try to rebuild OpenFOAM once again. But before rebuilding, check if the following commands outputs the expected values:
Code:

echo $WM_MPLIB  #checking if the desired MPI library is going to get picked
echo $WM_COMPILER  #check if the compiler option is correct
which gcc  #check if the gcc binary is located where you expect it to be
gcc -v  #check if gcc is a version >= 4.3.2
which mpirun  #check if the mpirun binary is the one you want

If all OK, then run the following commands:
Code:

foam
wcleanAll
wcleanLnIncludeAll
./Allwmake > make.log 2>&1

These will clean up the development environment and rebuild OpenFOAM once again!

Good luck!
Bruno

jans July 28, 2011 17:28

Hi guys,
I am also trying to build OpenFOAM (2.0.0 not 1.7.1) with SGI MPT 2.03 and icc (not gcc). Good to see there is company. Thanks wyldcat for pointing me to Pere's two threads.

Quick question Pere, it seems from the first post on this thread that you have built OpenFOAM with OpenMPI and now you want to run that build with SGI MPT. Did I get that right?

If yes, then I would suggest you rebuilding OpenFOAM from scratch with SGI MPT. Thats what I am trying to do now. My thread is
http://www.cfd-online.com/Forums/ope...pt-2-03-a.html

Cheers
Anirban

jans July 28, 2011 19:53

I see that Wyldcat also suggested a clean rebuild in the post just before. Thats the way to go
-A

pere July 29, 2011 03:21

-hi anirban,

I've build OpenFOAM with openmpi and now I want to build it with mpt-2.03 but it seems to be hard....

wyldckat September 24, 2011 07:57

News update about building with SGI MPT (or so I hope): http://www.cfd-online.com/Forums/ope...tml#post325458 post#7


All times are GMT -4. The time now is 11:18.