On 6/15/22 17:22, Sebastian Andrzej Siewior wrote:
On 2022-06-15 17:18:55 [+0200], Pierre Gondois wrote:
If this is *that* important I would lean towards always doing the
globalt_barr so all threads start once everything is set up. If I
remember correctly, the first few cycles are not counted and just fill
the cache.
Ok yes, I didn't see the globalt_barr barrier. FWIW I tested
the patch and it works well.
The globalt_barr isn't enabled by default. If that is important then I
recommend doing this by default. I can post patch if you want me to.
Starting all the threads at the same time seems sensible to me,
but I don't have any numbers to prove this is useful.
Regards,
Pierre
Sebastian