yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #28798
Re: [Question #704389]: Problem with OpenMP
Question #704389 on Yade changed:
https://answers.launchpad.net/yade/+question/704389
Status: Open => Answered
Karol Brzezinski proposed the following answer:
Hi Roxana,
Please note that this was discussed in this forum several times, and you
can find more information on other topics (e.g., [1]).
Very briefly, I would summarise it in two points:
- First, parallelization efficiency depends on the simulation. If one person can paint the room in eight hours, it doesn't mean that 48 people would paint the room in ten minutes :)
- Secondly, the source code needs to be prepared for OpenMP parallelization. In Yade, it is usually realized by "#pragma omp parallel for" directive [2]. It tells the program where computations can be split in several threads without causing problems. It is usually used for long loops of independent operations (e.g. newtonIntegrator). So, if your engine does not have such a directive inside, your simulation will use one core most of the time.
Best wishes
Karol
[1] https://answers.launchpad.net/yade/+question/699458
[2] https://yade-dem.org/doc/prog.html#parallel-execution
--
You received this question notification because your team yade-users is
an answer contact for Yade.