Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2016-09-12 13:37:43

stephaneberger
Member
From: Strasbourg (France)
Registered: 2012-10-15
Posts: 70

CENTOS 7 - code_aster 12.6

Hi all,

I'm trying to compil code_aster parallel v12.6 on centos 7 and I face some issues. I'm following the tutorial described here.
I have allready compiled  code_aster parallel on ubuntu 14.04 and every thing went right.

Actually, I face issue during the compilation of mumps, I obtained the following error message.

make[1] : on entre dans le répertoire « /opt/mumps-4.10.0_mpi/examples »
mpif90 -O -Dintel_ -DALLOW_NON_INIT -ffixed-line-length-0 -x f77-cpp-input -fPIC  -fopenmp -I/usr/include/openmpi -I../PORD/include/ -I. -I../include -c ssimpletest.F -o ssimpletest.o
Warning: Nonexistent include directory "/usr/include/openmpi"
mpif90 -o ssimpletest -O -fopenmp ssimpletest.o  ../lib/libsmumps.a ../lib/libmumps_common.a -L/opt/aster/public/metis-4.0.3/lib -lmetis -L../PORD/lib/ -lpord -L/opt/aster/public/scotch-5.1.11_esmumps/lib -lesmumps -lscotch -lscotcherr /opt/scalapack/lib/libscalapack.a /opt/OpenBLAS/lib/libopenblas.a  -L/usr/lib -lmpi -lmpi_f77 -lmpi_f90 -L/opt/OpenBLAS/lib/ -lopenblas -lpthread
/bin/ld: ne peut trouver -lesmumps
/bin/ld: ne peut trouver -lscotch
/bin/ld: ne peut trouver -lscotcherr
/bin/ld: ne peut trouver -lmpi_f77
/bin/ld: ne peut trouver -lmpi_f90
collect2: erreur: ld a retourné 1 code d'état d'exécution
make[1]: *** [ssimpletest] Erreur 1
make[1] : on quitte le répertoire « /opt/mumps-4.10.0_mpi/examples »
make: *** [sexamples] Erreur 2

What I have notice is :
the directory /opt/aster/public/scotch-5.1.11_esmumps doesn't exist, I have only /opt/aster/public/scotch-5.1.11. Does it mean that something is wrong with my install so far ?
If I change in the Makefile.inc file /opt/aster/public/scotch-5.1.11_esmumps to /opt/aster/public/scotch-5.1.11, the error on lesmumps, lscotch and lscotcherr disappear but not the ones on mpi.

I guess that OpenBLAS ans scalapack are correctly installed because i have the file /opt/OpenBLAS/lib/libopenblas.a and /opt/scalapack/lib/libscalapack.a on my system.

Does someone have an idea ?

Thanks for your help

Stephane

Last edited by stephaneberger (2016-09-12 15:03:56)

Offline

#2 2016-09-14 10:48:14

stephaneberger
Member
From: Strasbourg (France)
Registered: 2012-10-15
Posts: 70

Re: CENTOS 7 - code_aster 12.6

I post a part of the answer I have understood.

On fedora systems (i.e. Fedora, Red-Hat, CentOS), the option for mpi library are named :
-lmpi_usempi -lmpi_mpifh -lmpi instead of -lmpi_f77 -lmpi_f90 -lmpi

Offline

#3 2016-09-16 19:00:57

psicofil
Member
From: Argentina
Registered: 2016-04-27
Posts: 24

Re: CENTOS 7 - code_aster 12.6

Hi,

I'm trying to install Code_Aster_Parallel 12.6 in the Red Hat system following the above steps. I succeeded in reaching to compile mumps.

My problem now is in the configuration of code_aster in parallel, when I run:

./waf set --use-config-dir = $ ASTER_ROOT / 12.6 / share / aster --use-config = Ubuntu_gnu_mpi prefix = $ ASTER_ROOT / PAR12.6

I have the following result:

Setting top to                           : /home/lgomez/Install_Files/aster-full-src-12.6.0/SRC/aster-12.6.0 
Setting out to                           : /home/lgomez/Install_Files/aster-full-src-12.6.0/SRC/aster-12.6.0/build 
Setting prefix to                        : /PAR12.6 
Checking for custom configuration        : Ubuntu_gnu_mpi 
Checking for 'mpicc'                     : yes 
Checking for 'mpif90'                    : yes 
Checking for 'gcc' (c compiler)          : mpicc 
Checking for 'g++' (c++ compiler)        : mpicxx 
Checking for 'gfortran' (fortran compiler) : mpif90 
Checking for header mpi.h                : yes 
Checking for C compiler version          : gcc 4.8.5 
Checking for Fortran compiler version    : gfortran 4.8.5 
fortran link verbose flag                : -v 
Checking for OpenMP flag -fopenmp        : yes 
Getting fortran runtime link flags       : ok (-L/opt/mumps-4.10.0_mpi/lib -L/opt/petsc-3.4.5/arch-linux2-c-opt/lib -L/opt/scalapack/lib -L/opt/aster/public/hdf5-1.8.14/lib -L/opt/aster/public/med-3.2.0/lib -L/opt/aster/public/metis-4.0.3/lib -L/opt/aster/public/scotch-5.1.11/lib -L/opt/aster/public/mfront-2.0.3/lib -L/opt/OpenBLAS/lib -lX11 -L/usr/lib64/openmpi/lib -lmpi_usempi -lmpi_mpifh -lmpi -L/opt/mumps-4.10.0_mpi/lib -L/opt/petsc-3.4.5/arch-linux2-c-opt/lib -L/opt/scalapack/lib -L/opt/aster/public/hdf5-1.8.14/lib -L/opt/aster/public/med-3.2.0/lib -L/opt/aster/public/metis-4.0.3/lib -L/opt/aster/public/scotch-5.1.11/lib -L/opt/aster/public/mfront-2.0.3/lib -L/opt/OpenBLAS/lib -L/usr/lib64/openmpi/lib -L/opt/mumps-4.10.0_mpi/lib -L/opt/petsc-3.4.5/arch-linux2-c-opt/lib -L/opt/scalapack/lib -L/opt/aster/public/hdf5-1.8.14/lib -L/opt/aster/public/med-3.2.0/lib -L/opt/aster/public/metis-4.0.3/lib -L/opt/aster/public/scotch-5.1.11/lib -L/opt/aster/public/mfront-2.0.3/lib -L/opt/OpenBLAS/lib -L/usr/lib64/openmpi/lib -L/opt/mumps-4.10.0_mpi/lib -L/opt/petsc-3.4.5/arch-linux2-c-opt/lib -L/opt/scalapack/lib -L/opt/aster/public/hdf5-1.8.14/lib -L/opt/aster/public/med-3.2.0/lib -L/opt/aster/public/metis-4.0.3/lib -L/opt/aster/public/scotch-5.1.11/lib -L/opt/aster/public/mfront-2.0.3/lib -L/opt/OpenBLAS/lib -L/usr/lib64/openmpi/lib -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. -lX11 -lmpi_usempi -lmpi_mpifh -lmpi -lgfortran -lm -lquadmath -lm -lpthread) 
Checking for library pthread             : yes 
Checking for library dl                  : yes 
Checking for library util                : yes 
Checking for program python              : /usr/bin/python 
Checking for python version              : (2, 7, 5, 'final', 0) 
Checking for library python2.7 in LIBDIR : yes 
Checking for program /usr/bin/python-config,python2.7-config,python-config-2.7,python2.7m-config : /usr/bin/python-config 
Checking for header Python.h             : yes 
Checking for numpy                       : yes 
Checking for numpy version               : 1.7.1 
Checking for numpy include               : ['/usr/lib64/python2.7/site-packages/numpy/core/include'] 
Getting platform                         : LINUX64 
Checking for library pthread             : yes 
Checking for library m                   : yes 
Checking for static library openblas     : yes 
Setting libm after files                 : yes ("-lm" removed from LINKFLAGS_CLIB) 
Checking for a program using blas/lapack : ok 
Checking for static library hdf5         : yes 
Checking for static library z            : not found 
Checking for static library med          : yes 
Checking for static library stdc++       : not found 
The configuration failed
(complete log in /home/lgomez/Install_Files/aster-full-src-12.6.0/SRC/aster-12.6.0/build/config.log)

I do not know, as getting code_aster detect stdc ++ (which is installed on my system libstdc++, libstdc++-devel)

Sorry for my bad english.
Regards


Ing. Gomez Lucio
Scope Ingenieria  (scopeingenieria.com)

Offline

#4 2016-09-17 13:27:52

stephaneberger
Member
From: Strasbourg (France)
Registered: 2012-10-15
Posts: 70

Re: CENTOS 7 - code_aster 12.6

Hi

You have to install zlib-devel and libstdc++-static packages

Tell me if you succeed with the parallel installation after that because I face now some issue with mfront, hdf5 and med libraries.
I'm interested to see if it works on your system

Regards

stephane

Offline

#5 2016-09-19 18:05:44

psicofil
Member
From: Argentina
Registered: 2016-04-27
Posts: 24

Re: CENTOS 7 - code_aster 12.6

Hi stephaneberger,

I have already installed these packages, but the error persists.


Ing. Gomez Lucio
Scope Ingenieria  (scopeingenieria.com)

Offline

#6 2016-09-19 20:47:53

stephaneberger
Member
From: Strasbourg (France)
Registered: 2012-10-15
Posts: 70

Re: CENTOS 7 - code_aster 12.6

Hi

Actually you need the static libraries. I did a mistake in my last reply.

You need libstdc++-static and zlib-static

regards

stephane

Offline

#7 2016-09-21 13:10:43

psicofil
Member
From: Argentina
Registered: 2016-04-27
Posts: 24

Re: CENTOS 7 - code_aster 12.6

Hi,

Finally, turn off the option stdc++ in the Ubuntu_gnu.py file, and parallel Code_Aster was installed correctly.
Sorry for my bad english. Thanks for the help.
Regards.


Ing. Gomez Lucio
Scope Ingenieria  (scopeingenieria.com)

Offline

#8 2016-11-26 01:28:44

GuillermoBarraza
Member
Registered: 2016-05-24
Posts: 49

Re: CENTOS 7 - code_aster 12.6

stephaneberger wrote:

If I change in the Makefile.inc file /opt/aster/public/scotch-5.1.11_esmumps to /opt/aster/public/scotch-5.1.11, the error on lesmumps, lscotch and lscotcherr disappear

Hello, Stephan.

I'm facing the same problem you had, but didn't understand quite clearly what you changed to make it work. Doesn't the Makefile.inc had to be placed in the mumps-4.10.0_mpi folder and no otherwise?

Hope that you can help me with this.

Best,

Guillermo

Offline

#9 2016-12-14 22:13:01

stephaneberger
Member
From: Strasbourg (France)
Registered: 2012-10-15
Posts: 70

Re: CENTOS 7 - code_aster 12.6

Hi Guillermo,

Actually, It is a long time since I was trying to build this parallel and I didn't succeed.
In order to fix this issue, I have modified the Makefile.inc in the mumps src file.

But I didn't understood really the real reason why building with the name *_esmumps was not possible.

Regards

Stephane

Offline