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

You are not logged in.

#1 2018-06-06 22:09:44

tianyikillua
Member
From: Paris
Registered: 2017-11-06
Posts: 45

Activate parmetis/ptscotch for aster 13.4

I compiled the parallel aster 13.4 (inside Docker, see viewtopic.php?id=23453) with a MUMPS linked against parmetis and ptscotch (-Dparmetis -Dptscotch).

However the testcase zzzz401b fails, because it tells me that Aster is not compiled with them.

So how can we activate parmetis/ptscotch for aster?

Thanks

PS: aparently before parmetis/ptscotch should be not used when compiling aster/mumps, see viewtopic.php?id=19198

!-------------------------------------------------------------------------------------------------------------------------------!
! <F> <FACTOR_91>                                                                                                               !
!                                                                                                                               !
! Solveur MUMPS :                                                                                                               !
!   Vous avez paramétré le solveur linéaire MUMPS avec un renuméroteur parallèle: RENUM='PARMETIS' ou 'PTSCOTCH'. Or ceux-ci ne !
!   sont pas installés dans cette version de Code_Aster.                                                                        !
!                                                                                                                               !
!   Conseil:                                                                                                                    !
!     - Assurer vous de prendre une version parallèle de Code_Aster intégrant ces produits externes,                            !
!     - Changer de renuméroteur ou laisser le paramètre RENUM à la valeur 'AUTO'.                                               !
!                                                                                                                               !
!                                                                                                                               !
! Cette erreur est fatale. Le code s'arrête.                                                                                    !
!-------------------------------------------------------------------------------------------------------------------------------!

Offline

#2 2018-06-07 08:16:49

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 3,054

Re: Activate parmetis/ptscotch for aster 13.4

Hello,

This error means that the support of ParMETIS and PTScotch is not activated inside MUMPS.

Basically, it's likely that the compilation of MUMPS did not take into account the ParMETIS and PTScoch libraries.
There is nothing particular to do in code_aster to activate this support.

Depending on the way you're compiling MUMPS, just check the waf configuration or Makefile.inc to make sure the options to activate ParMETIS and PTScotch have been correctly used.

TdS

Offline

#3 2018-06-07 17:15:13

tianyikillua
Member
From: Paris
Registered: 2017-11-06
Posts: 45

Re: Activate parmetis/ptscotch for aster 13.4

Bonjour,

Effectivement c'est un peu bizarre. Mon MUMPS est bien compilé avec parmetis et ptscotch comme le montre l'exemple suivant

aster@52591319b6d3:~/aster/public/mumps-5.1.1_mpi/share/examples$ ./dsimpletest < input_simpletest_real
Entering DMUMPS 5.1.1 with JOB, N, NNZ =   6           5             12
      executing #MPI =      1 and #OMP =      8
 =================================================
 MUMPS compiled with option -Dmetis
 MUMPS compiled with option -Dparmetis
 MUMPS compiled with option -Dptscotch
 MUMPS compiled with option -Dscotch
 =================================================

Mais durant l'exeution du cas test aster, il me dit que MUMPS n'est linké contre aucune librairie

<AMUMPM>     NZLOC:                  7026
        TERMES NULS:                  3498
    UNDER/OVERFLOWS:                     0 /                    0
Entering DMUMPS 5.1.1 with JOB, N =   1         475
      executing #MPI =      2, without OMP
 =================================================
 =================================================
L D L^T Solver for general symmetric matrices
Type of parallelism: Working host

 ****** ANALYSIS STEP ********

ParMETIS not available.
 ELAPSED TIME IN ANALYSIS DRIVER=       0.0000
 ** ERROR RETURN ** FROM DMUMPS INFO(1)=  -38
 ** INFO(2)=               0
 ** ERROR RETURN ** FROM DMUMPS INFO(1)=   -1
 ** INFO(2)=               0
 On return from DMUMPS, INFOG(1)=             -38
 On return from DMUMPS, INFOG(2)=               0

Faudrait-il ajouter "parmetis ptscotch ..." dans le variable LIB durant la compilation de aster?

Last edited by tianyikillua (2018-06-07 17:17:51)

Offline

#4 2018-06-07 18:08:31

tianyikillua
Member
From: Paris
Registered: 2017-11-06
Posts: 45

Re: Activate parmetis/ptscotch for aster 13.4

Je vois. Mon PETSc est linké avec un autre MUMPS. En linking aster avec PETSc, aster a trouvé le mumps de PETSc...

Pourtant le mumps utilisé par PETSc n'est pas dans le libpath...

export INCLUDES="${PUBLIC}/hdf5-${HDF5_VER}/include \
                     ${PUBLIC}/med-${MED_VER}/include \
                     ${PUBLIC}/metis-${METIS_VER}/include \
                     ${PUBLIC}/parmetis-${PARMETIS_VER}/include \
                     ${PUBLIC}/ptscotch-${SCOTCH_VER}/include \
                     ${PUBLIC}/mumps-${MUMPS_VER}_mpi/include \
                     ${PUBLIC}/petsc-${PETSC_VER}/include \
                     ${PUBLIC}/mfront-${MFRONT_VER}/include" && \
    export LIBPATH="${PUBLIC}/hdf5-${HDF5_VER}/lib \
                    ${PUBLIC}/med-${MED_VER}/lib \
                    ${PUBLIC}/metis-${METIS_VER}/lib \
                    ${PUBLIC}/parmetis-${PARMETIS_VER}/lib \
                    ${PUBLIC}/ptscotch-${SCOTCH_VER}/lib \
                    ${PUBLIC}/scalapack-${SCALAPACK_VER}/lib \
                    ${PUBLIC}/mumps-${MUMPS_VER}_mpi/lib \
                    ${PUBLIC}/petsc-${PETSC_VER}/lib \
                    ${PUBLIC}/mfront-${MFRONT_VER}/lib"

Offline

#5 2018-06-18 23:02:58

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 3,054

Re: Activate parmetis/ptscotch for aster 13.4

Hello,

Using MUMPS as a linear solver in code_aster and as a preconditioner for PETSc is indeed a bit tricky.

Basically, it requires building MUMPS first, then building PETSc by providing the self-compiled MUMPS and prevent PETSc from building’its own version.

TdS

Offline

Board footer