- This topic has 2 replies, 2 voices, and was last updated 7 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › [SOLVED] Running multiple simulations in parallel
Tagged: 64_bits, SOFA_1503, Windows_10
Hello,
in a c++ program where Sofa is a dependency, is it possible to run multiple Sofa simulations in parallel?
I noticed that the class sofa::simulation::Simulation is a singleton. Is it a problem for parallelism?
Thanks for your help,
Alex
Hey Alex,
Sorry for the delay! Got pretty busy making SOFA a luxury open-source platform!
I did not myself run several simulations in parallel. However, I just asked other devs (one Czech guy that you know) who worked on similar topics for data assimilation. He used Python to generate automatically in one scene as many child node as nb of threads you want. Then, a specific animation loop using pthread is distributing tasks, and each task was actually focusing on one node of the simulation. This work could be shared!
Finally, a multithreading workgroup really started with an active engineer within the research teams. He could be helpful as well!
Best regards,
Hugo
Thanks! Makes sense and it seems to be the only solution. Glad to know that it is possible. I’ll let you know if I go into this direction.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.