Welcome, Guest
Username: Password: Remember me

TOPIC: parallel computing

parallel computing 3 years 6 months ago #38345

Does Mascaret support parallel computing?How to set parameters?thanks!
The administrator has disabled public write access.

parallel computing 3 years 6 months ago #38358

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Parallel computation is not requested for 1D simulations...
But you could run parallel computation of a model in order to achieve uncertainty analysis for example
Christophe
The administrator has disabled public write access.

parallel computing 3 years 6 months ago #38359

thanks,Does that mean it supports parallel computing?
The administrator has disabled public write access.

parallel computing 3 years 6 months ago #38361

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Not in the sens where you could run a computation on one model over many cores
but you could run multiple instances of mascaret in parallel at the same time if you would like to study the effect of various discharge or friction coefficient.
But this couldn't be done with the fudaa interface, you should build the model with fudda and then use the mascaret API in a python script for example or in R with the latest developments
Christophe
The administrator has disabled public write access.

parallel computing 3 years 6 months ago #38390

compute.png

I used the mascaret API in a python script to start the calculation, but the parallel calculation did not take effect, and the computation Kernel is still 1.May i ask why?
The administrator has disabled public write access.

parallel computing 3 years 6 months ago #38391

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
The number indicated for Computation Kernel is an integer which represent the solver you used. There is 3 different computation kernel in Mascaret, for steady state computation, for subcritical transient computation and for transcritical transient computation...
And as I already wrote, mascaret will always run on 1 processor.
You could have many parallel runs of 1 mascaret if needed for uncertainty quantification
Christophe
The administrator has disabled public write access.

parallel computing 3 years 6 months ago #38392

How to understand ‘You could have many parallel runs of 1 mascaret’? How to set it up?
The administrator has disabled public write access.

parallel computing 3 years 6 months ago #38393

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
I'm not a specialist of this functionality but I will try to explain as much as possible
With Mascaret API, you could change some computation parameters.
For example , in an uncertainty analysis, you would like to test the effect of friction coefficient and in you model, you've got 3 different zone with each time a value of friction coefficient for minor bed and one for major bed.
you define a normal distribution for each coefficient in each zone.
you decide to run 1000 simulations. For each simulation you choose the six values randomly.
With the API, you create 1000 instances of your mascaret model. For each instances, you give the fiction values and you run the simulation. If you have 1000 cores available, you could have the 1000 results in the time of 1 computation...

Hope this helps
Christophe
The administrator has disabled public write access.
Moderators: JFourdrinoy

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