CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Configuration of MPICH

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 24, 2006, 12:39
Default Hi Håkan, can you try attac
  #21
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
Hi Håkan,

can you try attached argList.C and let me know whether that helps?

argList.C
mattijs is offline   Reply With Quote

Old   August 24, 2006, 13:43
Default Hi Mattijs, mpiexec can rea
  #22
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 193
Rep Power: 9
hani is on a distinguished road
Hi Mattijs,

mpiexec can read the arguments from a file, and I tried that. However, the arguments in the file are just added as flags to the mpiexec command and we're back where we started.

I'll test your argList.C on monday when I get back to work.

If it doesn't work, is there any problem just removing the FatalError.exit() as long as I make sure that I start my computations correctly (giving the correct flags and arguments)?

Thanks for your efforts.
Håkan.
hani is offline   Reply With Quote

Old   August 25, 2006, 03:34
Default >removing the FatalError. It
  #23
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
>removing the FatalError.
It probably will set the root and case incorrectly.
mattijs is offline   Reply With Quote

Old   August 28, 2006, 03:24
Default Hi Mattijs, Actually, remov
  #24
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 193
Rep Power: 9
hani is on a distinguished road
Hi Mattijs,

Actually, removing FatalError seemed to work and set the root and case correctly.

Your argList.C above also seems to work, so I will stick to that one. What I am not really sure about is if you actually truncate argv? Then the extra flags are not needed by MPI_Init inside OpenFOAM? Or is MPI_Init run before argList.C?

It now seems like I don't have to do addValidParOptions for the extra flags, so there is still no check of consistency for those flags. But I can live with that.

Thanks for your help!
Håkan.
hani is offline   Reply With Quote

Old   August 29, 2006, 03:52
Default Thanks for testing. The 'ru
  #25
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
Thanks for testing.

The 'rule' is that MPI_Init strips off any of its arguments (which it added to start up the job). So after MPI_Init we should have a clean argument list.

You should now not need those extra addValidParOptions in your mpi/Pstream.C
mattijs is offline   Reply With Quote

Old   September 9, 2006, 07:58
Default Hi, What is the difference
  #26
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 10
hsieh is on a distinguished road
Hi,

What is the difference between MPICH and Lam? Does MPICH has a better performance than LAM?
Thanks!

Pei
hsieh is offline   Reply With Quote

Old   December 5, 2006, 14:37
Default Hi I got today the same messa
  #27
Member
 
rafal zietara
Join Date: Mar 2009
Location: Manchester, UK
Posts: 60
Rep Power: 9
rafal is on a distinguished road
Hi
I got today the same message
error. Without PBS everything
runs perfectly but when using
queue system than it is not so
pinky. Did you find any solution?
Is thre any trick to solve or
bypass the error?
thanks in advance
rafal

error:
[0] MPI Abort by user Aborting program !
[0] Aborting program
rafal is offline   Reply With Quote

Old   December 6, 2006, 02:18
Default The problem with additional fl
  #28
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 193
Rep Power: 9
hani is on a distinguished road
The problem with additional flags to mpiexec was solved when using Mattijs argList.C file in the previous entry:
http://www.cfd-online.com/cgi-bin/Op...=9626#POST9626

Håkan
hani is offline   Reply With Quote

Old   June 2, 2007, 03:08
Default Dear Friends I am using OF1
  #29
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 9
kumar2 is on a distinguished road
Dear Friends

I am using OF1.3. want to change from LAM to MVAPICH. i did the following

1) export WM_MPLIB=MPICH in bashrc
2) set all path to the MVAPICH library in .bashrc

But i get this error when i do wmake libso in /src/Pstream/


/usr/bin/ld: /usr/local/topspin/mpi/mvapich/gnu/lib/libmpich.a(probe.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/topspin/mpi/mvapich/gnu/lib/libmpich.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [/home/kri_kuma/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt/mpich/libPstream.s o] Error 1

///////////////////////////////////

There is only a libmpich.a in /mvapich/lib

what should i do ?

Thanks a lot in advance

kumar
kumar2 is offline   Reply With Quote

Old   June 6, 2007, 17:26
Default Dear all, Any comments on
  #30
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 9
kumar2 is on a distinguished road
Dear all,

Any comments on the previous post which is once again repeated here.

//////////////////////////////////////////////
Dear Friends

I am using OF1.3. want to change from LAM to MVAPICH. i did the following

1) export WM_MPLIB=MPICH in bashrc
2) set all path to the MVAPICH library in .bashrc

But i get this error when i do wmake libso in /src/Pstream/


/usr/bin/ld: /usr/local/topspin/mpi/mvapich/gnu/lib/libmpich.a(probe.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/topspin/mpi/mvapich/gnu/lib/libmpich.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [/home/kri_kuma/OpenFOAM/OpenFOAM-1.3/lib/linuxAMD64Gcc4DPOpt/mpich/libPstream.s o] Error 1

///////////////////////////////////

There is only a libmpich.a in /mvapich/lib

what should i do ?

Thanks a lot in advance

kumar
kumar2 is offline   Reply With Quote

Old   June 6, 2007, 17:46
Default These are just guesses: 1.
  #31
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 13
msrinath80 is on a distinguished road
These are just guesses:

1. Try to link against a shared library (file extension *.so) as opposed to a static on (*.a). In other words build the MPI library with --with-shared or whatever is the appropriate argument. If you're linking against a pre-built library, try to see if you can find whether it was build with 'shared library' suppprt.
2. Make sure that WM_64 is set to on (assuming you are in 64 bit mode).
msrinath80 is offline   Reply With Quote

Old   June 6, 2007, 18:08
Default Hi pUI Thanks a lot for the
  #32
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 9
kumar2 is on a distinguished road
Hi pUI

Thanks a lot for the prompt reply. I only vaguly understand what you say and hopefully my sysad will help me from here.

kumar
kumar2 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MPICH r2d2 OpenFOAM Installation 1 June 15, 2005 19:32
PVM or MPICH CFX User CFX 5 November 3, 2004 17:31
LAM/MPI or MPICH? Junseok Kim Main CFD Forum 0 January 15, 2004 08:10
PC configuration for CFD Fernando Sanz Main CFD Forum 17 December 19, 2001 08:29
MPICH Junseok Kim Main CFD Forum 1 November 5, 2000 23:07


All times are GMT -4. The time now is 05:32.