I was just wondering how much I/O operations contribute to your timings.
What would happen if you minimize the I/O activities, maybe comment out
output_results method and see if anything changes?

Regards
Ahmad

On Tue, Feb 11, 2020 at 16:27 Toni Vidal <avidalferran...@gmail.com> wrote:

> Hi David,
>
> That did not solve the problem with step 6. I got the same times.
>
> Indeed I have installed deal.II without  threads (DEAL_II_WITH_THREADS =
> OFF) and I set in my .basrc OMP_NUM_THREADS=1.
>
> Any other idea?
>
>
> El dimarts, 11 febrer de 2020 17:53:53 UTC+1, David Wells va escriure:
>>
>> 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 <avidalf...@gmail.com>
>> 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 dea...@googlegroups.com.
>> > 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 dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/36de50e0-355b-4337-a9ad-0512229a2f80%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/36de50e0-355b-4337-a9ad-0512229a2f80%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAGCgw4BoXcaHis-KAeVHc0v8fU9mSY8okBqcftZ4%2BTikq3QuvA%40mail.gmail.com.

Reply via email to