Welcome, Guest
Username: Password: Remember me

TOPIC: Parallel fail to allocate all threads available

Parallel fail to allocate all threads available 4 years 1 month ago #36658

  • ekirinus
  • ekirinus's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 21
  • Thank you received: 1
Dear all,

I'm trying to use telemac3d (v7p2r3) on ubuntu 20.04. I used the same install steps as I did before for ubuntu 16.04, but now a strange behavior has occurred.

My notebook is an i7 9th generation, with 6 cores and 12 threads and I can't use all threads in one simulation. I can start 2 simulations with 6 cores each, but not 12.

I tried several changes at my .cfg but all lead to the same errors. Does anyone have any idea how to solve this?

Please, find attached my .cfg and a picture of the terminal error. The command I'm using to call telemac is: runcode.py telemac3d -s -c parallel t3d_viollet.cas --ncsize=7

If I call ncsize=6 the simulation starts normally.



PS: I tried to run the Viollet example, but my simulation shows the same errors. At the outdated ubuntu, this error never occurred.


Thanks in advance

Eduardo
Attachments:
The administrator has disabled public write access.

Parallel fail to allocate all threads available 4 years 1 month ago #36661

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

The issue is linked to your mpi installation.
May be try another MPI distribution.
Nothing in the telemac configuration file can change that.

So I'm afraid we'll not be able to help you more than that.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Parallel fail to allocate all threads available 4 years 3 weeks ago #36870

  • josekdiaz
  • josekdiaz's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 48
Hello, well as Yugi mentioned this is bound to your MPI dist...

But,as always, you can force your MPI to use threads instead of cpu's modifying your cfg in just one line.

from:
mpi_cmdexec: /usr/bin/mpiexec -wdir <wdir> -n <ncsize> <exename>

to:
mpi_cmdexec: /usr/bin/mpiexec --use-hwthread-cpus -wdir <wdir> -n <ncsize> <exename>

Just for a sidenote, for general computational cases I've noticed that there is no significant gain from using threads instead of "cpus". The exception cases are related to heavy I/O operations within models.

Regards,

José Díaz.
The administrator has disabled public write access.
The following user(s) said Thank You: ekirinus

Parallel fail to allocate all threads available 4 years 3 weeks ago #36877

  • ekirinus
  • ekirinus's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 21
  • Thank you received: 1
Thanks José
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.