[eigen] Re: tests taking forever when run with -j8 and OpenMP is enabled |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] Re: tests taking forever when run with -j8 and OpenMP is enabled
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Sat, 3 Jul 2010 11:47:25 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=HapO5X7ZIjZKDTWX3sY2jQ5QJdCGBlEkxHhxUwTZsxE=; b=vQ20I5aSlvRkBRTzJu4K/d/TXPjWGdEwSOVBqZNL5MO7NIPTyHgJLKoABK8puKc1ET IgE6cprE25xm/xnY1qktdOTFXNW/mvZSxa5XLyDq23YwV8U1LkU4EhfxFC2M0UuaALf2 ZI7Li2ugm5QT3Jmo7asIk1V7UhCaPZ1ahxqjs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=M9gwJA5erSFCx3OzB+31PfrabiOUJt+iT9SYq+p+ZmUb92DszrRuwhUdcwJlW9pTL7 lGOGzDDWO9pW31c9aMHqtb2HdCMi8g5a55jVumUd98UVepgP5Lz9hSG172jCmZFtNIA/ RkK75CHoD0Gbtp9uoXE0yTG1S/BILO/FzVh1c=
Ah, just one thing. It remains that I only get this phenomenon when
using OpenMP. Is it really the case that with OpenMP enabled we rely
on the availability of more cache memory? That would be a bug.
Benoit
2010/7/3 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> No, I'm not reporting about a bug here!
>
> But I just stumbled across something interesting. With OpenMP enabled,
> when I run
>
> ctest -j8
>
> that is, 8 tests run simultaneously, the tests using large matrix
> product take above of 2 minutes each to complete.
>
> When I run only 1 test at a time (which is the default for ctest),
> they complete very quickly.
>
> Of course the reason is that running 8 tests at a time on my 4-core
> Core i7 is a recipe for making them fight for the CPU's cache memory.
>
> This is an illustration that setting cache sizes is ultimately
> something that only the user can do; the defaults we're using can only
> rely on rather unsafe assumptions about competing processes.
>
> Benoit
>