Welcome, Guest
Username: Password: Remember me

TOPIC: Parallel computing using TelApy

Parallel computing using TelApy 2 years 1 month ago #40158

Dear All,

I have recently started to use TelApy to control my simulations with Python. I am followint the documentation available in this link.



I import my simulation using the command
import telapy.api.t2d
my_simulation=telapy.api.t2d.telemac2d('case.cas', lang=2, comm=MPI.COMM_WORLD)

There a are two command lines that runs the simulation:
my_simulation.run_one_time_step()
my_simulation.run_all_time_steps()

I have checked and the simulation is using only one core in my computer.

Is it possible to use the parallel compting such as:
telemac2d.py case.cas --ncsize <number of cores>

?

I am using telemac in Ubuntu.

I really appreciate your support.

Kind regards,

Marcelo
The administrator has disabled public write access.

Parallel computing using TelApy 2 years 1 month ago #40160

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1470
  • Thank you received: 563
Hello Marcelo,

I am not a TelApy specialist but I would try to run:
mpirun -n number_of_cores name_of_script.py

Can you tell if it runs for you or not?

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

Parallel computing using TelApy 2 years 1 month ago #40183

Dear Chi-Tuan,

It actually works, I still have not tried to parallelize my script in Python, but it works.

Thanks,

Kind regards,

Marcelo
The administrator has disabled public write access.

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