Welcome, Guest
Username: Password: Remember me

TOPIC: Error in parallel run

Error in parallel run 2 weeks 4 days ago #44532

Hello everyone,

I compiled v8p5 and tried to run gouttedo and API examples they are working well in sequential without any error. But when I'm trying to run them in a parallel
mpirun -n 4 telemac2d.py t2d_gouttedo.cas
I got an error shown in the run.txt file.

Note that when I use
telemac2d.py t2d_gouttedo.cas --ncise=4
it runs well showing the following
DIFFERENT NUMBER OF PARALLEL PROCESSORS:
 DECLARED BEFORE (CASE OF COUPLING ?):           4
 TELEMAC-2D :           0
 VALUE            4  IS KEPT
but it didn't work when I tried to use the api example
DIFFERENT NUMBER OF PARALLEL PROCESSORS:
 DECLARED BEFORE (CASE OF COUPLING ?):           1
 TELEMAC-2D :           0
 VALUE            1  IS KEPT

I also got no error when tested the mpi with the a simple example:
from mpi4py import MPI

gbl_comm = MPI.COMM_WORLD

gbl_rank = gbl_comm.Get_rank()

gbl_ncsize = gbl_comm.Get_size()

print (gbl_ncsize)

I attached the configuration file.

I attached another API example that I cannot run, as it should use 2 cores as a minimum (telenkf_t2d_estimation.py)

I checked the previous forum posts but unfortunately, I couldn't find a similar error.

Can you advise, please?

Thank you.
Mohamed
Attachments:
The administrator has disabled public write access.

Error in parallel run 2 weeks 11 hours ago #44565

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1455
  • Thank you received: 560
Hello Mohamed,

If your computation runs in sequential and parallel with classical commands telemac2d.py t2d_gouttedo.cas and telemac2d.py t2d_gouttedo.cas --ncsize=4, that means it is not a TELEMAC-2D issue and your message should not be posted in this section.

It seems that your issue is the use of the API.
I move your message in the TelApy section which seems to me more appropriated.

Chi-Tuan
The administrator has disabled public write access.

Error in parallel run 2 weeks 11 hours ago #44566

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1455
  • Thank you received: 560
Hello again,

In $HOMETEL/examples/python3/TelApy_api you can see a way to run in parallel.

Maybe it can help you (I am not a specialist of API).

Chi-Tuan
The administrator has disabled public write access.

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