Page 2 of 2

Re: CS v2.1.0 and subroutines

Posted: Fri Feb 24, 2012 5:30 pm
by Yvan Fournier
Hello,
Interesting to note that problems seem to be related to MPI wrappers. Things are better than they used to be a few years ago regarding alternative mpi wrappers, but when several MPI libraries are installed, it seems that the symbolic links can point to different versions (I had a problem with this when I tried to reproduce your bug).
You can tell the setup file to use MPICH2 with the following installation options:

-compc = usr/bin/gcc

-compF = usr/bin/gfortran

-mpiCompC = none

-mpi = /usr/lib/mpich2 yes no
but things might fail due to symbolic links mixing libraries, even though we try to be robust, so using the MPI wrappers should in theory help here (though they seem to be the cause of the user subroutine problems).
Did you check if you also have the user subroutine problems using the MPICH2 compiler wrapper (mpiCompC = mpicc.mpich2) ?
When using compiler wrappers, you may also want to tru using the wrapper for compc in addition to mpiCompC.
Best regards,
  Yvan

Re: CS v2.1.0 and subroutines

Posted: Fri Feb 24, 2012 6:20 pm
by Alexandre Guilloux
Hi,
When I use this option in the setup file:

-compc = usr/bin/gcc

-compF = usr/bin/gfortran

-mpiCompC = none

-mpi = /usr/lib/mpich2 yes n
 
The installation tell me there is no repertory "/usr/lib/mpich2". Indeed, this repertory doesn't exist.
I am trying to use  the MPICH2 compiler wrapper (mpiCompC = mpicc.mpich2), I will let you know.
 
Thanks again for your help.
 
Best regards
Alexandre

Re: CS v2.1.0 and subroutines

Posted: Sat Feb 25, 2012 3:08 am
by Yvan Fournier
Hello,
Where is MPICH2 installed ? On my Ubuntu 11.10 install, with both Open MPI and MPICH2 installed, I have both /usr/lib/openmpi and /usr/lib/mpich2.
Regards,
  Yvan

Re: CS v2.1.0 and subroutines

Posted: Tue Feb 28, 2012 10:04 am
by Alexandre Guilloux
Hello,
I  tried to use  the MPICH2 compiler wrapper (mpiCompC =
mpicc.mpich2). There is the same problem. The subroutines are compiled but they are not used during the calculation.
 
Regarding the repertory:
Command: which mpicc.mpich2     -->  Result : /usr/bin/mpicc.mpich2
Command: /usr/bin/mpicc  -->  Result : /usr/bin/mpicc
For the installation of openmpi, I have installed the package :
- mpi-default-bin
- mpi-default-dev
- openmpi-common
- openmpi-checkpoint
- openmpi-doc
- openmpi-bin
 
And for mpich2:
- mpich2
- libmpich2-dev
- libmpich2-1.2
 
I have the repertory /usr/lib/openmpi which have include and lib folder.
I don't have usr/lib/mpich2 repertory.
 
Regards,
Alexandre

Re: CS v2.1.0 and subroutines

Posted: Thu Mar 08, 2012 10:52 am
by Alexandre Guilloux
[problem solved]
Hello,
I have install the library mpich2 manually, directly with the file on the mpich2 web site.
And now i have a repertory /bin in my mpich2 installation repertory.
So I have specify this option for the code_saturne installation in the setup file.
compC     /usr/bin/gcc
compF     /usr/bin/gfortran
mpiCompC  none
mpi    /home/alexandreguilloux/library/mpich2-intall    yes  no
 
And now it's working.
Code_saturne compile and use subroutines. And the calculation doesn't bug.
 
Thanks again Yvan for your help.
Best regards