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

You are not logged in.

#1 2016-11-08 19:26:00

nicorannou
Member
Registered: 2012-10-29
Posts: 36

Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

Hello
I try to create a parallel release of CA but I get an error with the last command (./waf install -p, see https://sites.google.com/site/codeaster … 4-english). The error appears at the step 'build the elements catalog elem.1 using installed aster (from cata_ele.ojb)' and apparently I need ~30GB memory to overcome this step.

# ------------------------------------------------------------------------------------------
# Impression du contenu du fichier de commandes à exécuter :
# ------------------------------------------------------------------------------------------
DEBUT(CATALOGUE=_F(FICHIER='CATAELEM', UNITE=4), 
      ERREUR=_F(ERREUR_F='ABORT'), PAR_LOT='NON')
MAJ_CATA(ELEMENT=_F())
FIN()

# ------------------------------------------------------------------------------------------
   
   !----------------------------------------------------------------------------------------!
   ! <F> <JEVEUX1_71>                                                                       !
   !                                                                                        !
   !  La mémoire totale de 4000.00 Mo allouée à l'étude est insuffisante, il est nécessaire !
   !  de disposer d'au moins 29450.75 Mo uniquement pour démarrer l'exécution.              !
   !                                                                                        !
   !                                                                                        !
   ! Cette erreur est fatale. Le code s'arrête.                                             !
   !----------------------------------------------------------------------------------------!

Does it mean that I need a machine with more than 30GB to generate a parallel version of CA?

nicorannou

Offline

#2 2016-11-16 14:27:40

mac
Member
Registered: 2009-07-10
Posts: 20

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

There is probably another problem. Which version do you want to compile?

Regards

Mac

Offline

#3 2016-11-17 22:33:14

nicorannou
Member
Registered: 2012-10-29
Posts: 36

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

Hello
As you can see in the topic, the CA version to compile is 13.2.0.

nicorannou

Offline

#4 2016-11-23 12:40:17

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,178

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

Hello,

I think the origin of the problem is an incompatibility with MPI includes (mpi.h).
But I didn't yet search more for the moment...

MC


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#5 2016-12-21 17:17:35

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

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

Hello,

@nicorannou

Which version of openmpi are you using ?

$mpirun --version

Thanks

stephane

Offline

#6 2016-12-29 11:24:19

nicorannou
Member
Registered: 2012-10-29
Posts: 36

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

Hello @stephaneberger,

the mpi version installed on my machine is 1.10.2.

Nicolas

Offline

#7 2017-01-03 17:18:51

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,178

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

Hello,

Last code_aster compiles without error with openmpi-1.8.8.

The problem occurred since openmpi-1.10.0. I also check that it has not been "fixed" in last 1.10.5.

During the last stage of the build process, code_aster is called directly. If it is called code_aster through mpirun, it works as expected.

A temporary fix is to add:

   self.env['CATALO_CMD'] = 'mpirun'

in the 'configure' function in the file used via --use-config.

Another fix is simply to use openmpi 1.8 wrappers just by changing your PATH environment variables.

MC


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#8 2017-01-04 22:00:54

nicorannou
Member
Registered: 2012-10-29
Posts: 36

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

Hello Mr Courtois,

thanks a lot! Indeed, parallel CA is well compiled by adding :
self.env['CATALO_CMD'] = 'mpirun' in the configuration file.

So, I ran a job but an error occurs :

Sur les 4041 mailles du maillage MAIL, on a demandé l'affectation de 4041, on a pu en affecter 4041
Modélisation     Type maille  Élément fini     Nombre
COQUE_3D         QUAD9        MEC3QU9H         477
COQUE_3D         TRIA7        MEC3TR7H         18
3D               QUAD9        MECA_FACE9       522
3D               HEXA27       MECA_HEXA27      3024
  -- NOMBRE DE MAILLES :                  4041
  -- NOMBRE DE NOEUDS  :                 27913
 
   
   !--------------------------------------------------------------------------------!
   ! <EXCEPTION> <UTILITAI5_1>                                                      !
   !                                                                                !
   !  Le fichier de nom fort.99.part.2 associé à l'unité logique ??? n'existe pas. !
   !--------------------------------------------------------------------------------!
   

  Destruction du concept 'MODELE'.
  Le processeur #0 a émis un message d'erreur.
  On demande au processeur #1 de s'arrêter ou de lever une exception.

thanks by advance for your help.

Nicolas

Offline

#9 2017-01-06 12:42:13

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,178

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

mathieu.courtois wrote:

Hello,

Last code_aster compiles without error with openmpi-1.8.8.

The problem occurred since openmpi-1.10.0. I also check that it has not been "fixed" in last 1.10.5.

During the last stage of the build process, code_aster is called directly. If it is called code_aster through mpirun, it works as expected.

A temporary fix is to add:

   self.env['CATALO_CMD'] = 'mpirun'

in the 'configure' function in the file used via --use-config.

Another fix is simply to use openmpi 1.8 wrappers just by changing your PATH environment variables.

MC

Indeed, the fix will be to prepend the command with 'mpirun -np 1' (because without argument mpirun may start one process per existing core...).


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#10 2017-01-06 12:43:25

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,178

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

@nicorannou: send a testcase to reproduce them problem.


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#11 2017-01-13 22:40:02

nicorannou
Member
Registered: 2012-10-29
Posts: 36

Re: Creation of CA Parallel version (Ubuntu 16.04 / Code Aster 13.2.0)

Hello
here is testcase which shows the problem.
Nicolas


Attachments:
maille.tar.gz, Size: 59.14 KiB, Downloads: 422

Offline