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

You are not logged in.

#26 2021-10-11 19:24:02

ing.nicola
Member
Registered: 2017-12-11
Posts: 130

Re: Questions about singularity version of salome_meca 2021

Maybe I will write a little tutorial on this with your permission.

share and enjoy !

Placing pkginfo.py in ...../aster-src/code_aster/  hg error is solved.

Petsc change often of C API so if you want to use mpi version of code_aster with petsc you have to be up to date.

thanks for the tips . I builded 16.0.8 with PETSC:

singularity run --bind /home:/home -w <full_path_image>.sif shell

in singularity:

export HOST=/home/<folder_sif> ( where placed aster-src and sif image)
export TOOLS="/opt/salome_meca/Salome-V2021-s9/tools"
export ASTER_ROOT_MPI="${TOOLS}/Code_aster_16_0_8_mpi"
export ASTER_ROOT_STD="${TOOLS}/Code_aster_16_0_8_std"

cd ${HOST}/aster-src
./waf_mpi configure --prefix=${ASTER_ROOT_MPI} --install-tests --jobs=8
./waf_mpi build  --jobs=8
./waf_mpi install 

cd ${HOST}/aster-src
./waf_std configure --prefix=${ASTER_ROOT_STD} --install-tests --jobs=8
./waf_std build  --jobs=8
./waf_std install 

echo "vers : 16_0_8_mpi:/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_16_0_8_mpi/share/aster" >> ${TOOLS}/Code_aster_frontend-2021001/etc/codeaster/aster
echo "vers : 16_0_8_std:/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_16_0_8_std/share/aster" >> ${TOOLS}/Code_aster_frontend-2021001/etc/codeaster/aster

out of singularity:

singularity run -w --app install <full_path_image>.sif
./name_image

Last edited by ing.nicola (2021-10-11 22:58:46)

Offline

#27 2021-10-11 21:29:04

ing.nicola
Member
Registered: 2017-12-11
Posts: 130

Re: Questions about singularity version of salome_meca 2021

file pkginfo.py attached.


Attachments:
pkginfo.py, Size: 87 B, Downloads: 20

Offline

#28 2021-10-12 08:45:42

mf
Member
Registered: 2019-06-18
Posts: 264

Re: Questions about singularity version of salome_meca 2021

Good morning,

as promised, I repeated the process with the zipped Code Aster sources. Weirdly enough, even with --without-hg everything works now. For the error of yesterday, I blame the hg version of the sources (but I cannot prove that :-) ).

In the evening I will try this on a headless machine (without Graphics Card).

Thank you again, this is great. I summarized this process on my GitHub-page.

Mario.

https: //github.com/emefff/Code-Aster-MPI-in-Singularity-of-SM2021

Last edited by mf (2021-10-12 08:54:46)

Offline

#29 2021-10-12 12:11:04

ing.nicola
Member
Registered: 2017-12-11
Posts: 130

Re: Questions about singularity version of salome_meca 2021

Great job Mario,
good explaned tutorial.

With pkginfo file , in salome meca list, doesn't appears anymore (0.0.1),  but the version you indicated in the pkginfo list wink

Last edited by ing.nicola (2021-10-12 14:26:33)

Offline

#30 2021-10-12 12:22:06

mf
Member
Registered: 2019-06-18
Posts: 264

Re: Questions about singularity version of salome_meca 2021

Hello,

thank you, all the credit goes out to you. Yes I thought about including that. Maybe I will try in the evening,

Mario.

Last edited by mf (2021-10-12 12:23:08)

Offline

#31 2021-10-13 10:43:57

sameer21101970
Member
Registered: 2019-09-06
Posts: 353

Re: Questions about singularity version of salome_meca 2021

Dear Mario,

Can you make a Video of Steps to follow in installation.
Your github is perfect but maximum codeaster users are mechanical or civil engineer & not good at computer science, can't understand what is written.

I think, video will be much help.

Also, you mentioned installation without graphic card, lot of students still using codeaster without graphic card on their pc/laptop. much help procedure awaited.

Regards
Sameer

Last edited by sameer21101970 (2021-10-13 10:49:08)

Offline

#32 2021-10-13 12:08:45

mf
Member
Registered: 2019-06-18
Posts: 264

Re: Questions about singularity version of salome_meca 2021

Hello Sameer,

I am also not a software engineer :-)...

Just copy the commands in the tutorial to your terminal. A video wouldn't be more helpful I guess, because it's all just terminal commands.

Headless system: When you built your container successfully, you just copy the container to another system (of course, singularity must be installed on this system). In my case on a headless server, when you start Salome Meca, it automatically recognises if you have a graphics card or not (it enters software rendering mode).
If you log on to this headless system with ssh, then don't forget the X-server. On the client side you then log on with 'ssh -X user@xxx.yyy.zzz.aaa'. The GUI will be forwarded to your terminal then.

Just dig into it, it is worth it!

Hope that helps,

Mario.

Offline

#33 2021-10-18 21:07:12

ing.nicola
Member
Registered: 2017-12-11
Posts: 130

Re: Questions about singularity version of salome_meca 2021

with the 16 october 2021 update  ... you can install petsc for 15.4.0 .... ( --disable-petcs is no more necessary ).
The mpi prerequisites have been update.

Last edited by ing.nicola (2021-10-18 22:34:14)

Offline

#34 2021-10-19 10:23:13

mf
Member
Registered: 2019-06-18
Posts: 264

Re: Questions about singularity version of salome_meca 2021

Hello Nicola,

now the container is perfect. I updated the recipe on my GitHub (remove space in link...)

https: //github.com/emefff/Code-Aster-MPI-in-Singularity-of-SM2021

I also updated the container that can be downloaded there,

thanks for the info,

Mario.

Last edited by mf (2021-10-19 10:24:05)

Offline

#35 2021-10-19 13:52:43

sb1966
Member
Registered: 2015-03-16
Posts: 211

Re: Questions about singularity version of salome_meca 2021

nicola wrote:

with the 16 october 2021 update  ... you can install petsc for 15.4.0 .... ( --disable-petcs is no more necessary ).
The mpi prerequisites have been update.

Thanks a lot for this new version with PETSC enabled.

mf wrote:

I also updated the container that can be downloaded there

Thanks a lot, Mario, for this modified container with CA-mpi. Also lots of thanks for your step-wise tutorial. It's a great contribution to the community. We had struggled a lot for mpi with earlier CA versions. Decision to use container is really a wise one, I feel.

Presently I am downloading your container and waiting eagerly to try it.

Best regards

Sukumar

Offline

#36 Yesterday 08:15:21

ing.nicola
Member
Registered: 2017-12-11
Posts: 130

Re: Questions about singularity version of salome_meca 2021

How to connect with container via ssh ?
Is it possible in visual studio ?

Offline

#37 Yesterday 16:47:44

mf
Member
Registered: 2019-06-18
Posts: 264

Re: Questions about singularity version of salome_meca 2021

Hello,

with an ssh-server and X-server running on a server without graphics card, I just login to this server with 'ssh -X user@xxx.yyy.zzz.aaa' and launch the container there (X11 forwarding must be configured in ssh.conf [?] not sure where exactly at the moment). The GUI is then forwarded to your client. It is a bit sluggish without a graphics card but it works. It also depends a little on your connection (latency).

About visual studio, I do not know.

Mario.

Offline