Hi Toni, I think that this is due to each individual program creating the same number of threads as you have physical processors. Try adding
MultithreadInfo::set_thread_limit(1); at the top of your code to prevent this from happening. Let us know if this works! Thanks, David On Tue, Feb 11, 2020 at 11:45 AM Toni Vidal <[email protected]> wrote: > > > Dear deal.ii users and developers, > > I am currently running a deal.II based code thousands of times with different > input parameters. Each simulation takes about 30 seconds in a single > processor. To do this, I have made a python script that runs 4 simulations at > a time (using the multiprocessing module). However, each simulation takes > about 60 seconds and my have 8 cores (Intel® Core™ i7-9700K CPU @ 3.60GHz × > 8). Is it not supposed to take approximately the same amount of because the > processors are independent? Am I > > In order to isolate the problem I have executed deal.II's step 6 (with 12 > cycles and 1e5 maximum solver steps) 1, 2 and 4 times at the same (using > different terminals). > > 1 running programs ~ 32 s user time > 2 running programs ~ 44 s user time > 4 running programs ~ 80 s user time > > Why the programs does not take the same time even though my computer have 8 > cores? > Any idea? Am I missing something obvious? > > Ton Vidal > > -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to the Google Groups > "deal.II User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dealii/767ae142-a02d-4bc2-a454-d4c385d1b217%40googlegroups.com. -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CABrTbYQ%3DYHzF9cSyaPtWjo6AUr3TqQntxs5JDYtmAfi0Xusogg%40mail.gmail.com.
