Parallel pybamm #3334
Replies: 1 comment 4 replies
-
hi @akariwrynn,
Unfortunately there are some limitations where ScipySolver is only for ODEs and won't work for DFN models and also not every parameter can be changed to an input. There is also another repository for running pack simulations that I have made called liionpack https://github.com/pybamm-team/liionpack and within this framework I run the cell models in parallel and make use of the casadi solver. This could be easily tweaked I think to simply run generic models in parallel without the pack configuration part and would not be limited to ODEs. However, that code could still be improved and I hit performance issues above a few thousand parallel models. If you are keen to contribute to this area of PyBaMM we would welcome a discussion with you and any of your colleagues. CC @martinjrobins |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I hope everyone is fine. I have asked this question almost 2 months ago but my supervisior asked me to ask one more time. So, I know that pybamm cannot be parallelized currently. Therefore, I check if it is single instance code. When I run 2 simulations at the same time, each simulation becomes slower than a single simulation. Specifically, a single simulation runs for 77 seconds but two simulations at the same time runs for 106 second each. Therefore, we think that it is serialized and single instance. Maybe this is the reason that we cannot parallelized pybamm. So, my question is what is the real reason that we cannot parallelized? Because we are eager to look to the code and consult a profesor from CS department in order to both contribute this amazing community and also continue our interesting project.
Thanks a lot,
Eren
Beta Was this translation helpful? Give feedback.
All reactions