Re: [eigen] Eigens Parallellism |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Eigens Parallellism
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Tue, 3 Jul 2012 19:30:18 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=tSwHrkZy+aqOIJaa1/K5Y170I5Bi0ZZOImujv40Ze1E=; b=OB5xBO82bvVYPv9FuH3QamLgkOwyqLWqT/ha8tC6zQcCxNxFGJsIWuablMwwFoJjPR VLTdQVLN4UxvLNIwo/G0EDcqCgRYWDtxqz9AVKBavsXmPTNckNzbBlAN4CRcVAjOPC9t +yuzbHkzjPFYn2AVeWns5bIYtyLd/kfqtR3Vlil+Op6QjoRAyJI4Wq9DtJm7QaOgj4u6 UwHIGTmnUcV+5x5OSFBAKc+XPX971pUIlLZ5zutkjQ603o7tl0/HuDDH/J8lLwsUBe8z DndRud4vVM2utTJnv0b6FZ+PDpzV9DLJdVLReeXz9Gr5+LUelM5mddcYyhY4gXJhktvb vp8g==
I confirm Christoph answers, and I'd like to add that Eigen will never
exploit MPI. It's out of the scope of Eigen. On the other hand, the
use of GPU is more likely to happen, though that's not a priority yet.
You can replace your first loops with:
my_temperature.fill(std::numeric_limits < double >::quiet_NaN());
gael
On Tue, Jul 3, 2012 at 1:26 AM, Christoph Hertzberg
<chtz@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> On 02.07.2012 19:53, Cassanova, Bill wrote:
>>
>> I am seeking a better understand of Eigen's parallelism logic....
>>
>>
>> - My understanding is that Eigen "Knows" and understands
>> OpenMP..I believe I read somewhere that enabling OpenMP is simply a
>> matter of including -fopenmp on the compile line...Is this really all
>> there is to it?
>
>
> Yes, Eigen basically just checks whether openmp is enabled (and
> EIGEN_DONT_PARALLELIZE is not defined):
> http://eigen.tuxfamily.org/dox/TopicMultiThreading.html
>
>> - To what degree does the code get auto-magically
>> transformed into an OpenMP directive? For example...In the code
>> below.
>
>
> As of now, only matrix-matrix product and PartialPivLU profit from
> multithreading (see same link).
>
>
>> - Are there any plans for the future to incorporate not only
>> OpenMP but also some MPI implementation?
>
>
> I don't know, but I don't think anyone is working on it right now.
>
>
>> - Are there plans for Eigen to use some form of GPU
>> processing?
>
>
> Same here.
>
>> Example Code -----------------------
>> [...]
>
>
> Your code hardly uses any Eigen instructions. It uses Eigen mostly just for
> data holding which, I guess, can't profit from parallelization much.
> Of course Eigen will not prevent you from parallizing these parts yourself,
> but it won't automatically parallize your code.
>
> HTH,
> Christoph
>
>
> --
> ----------------------------------------------
> Dipl.-Inf. Christoph Hertzberg
> Cartesium 0.049
> Universität Bremen
> Enrique-Schmidt-Straße 5
> 28359 Bremen
>
> Tel: +49 (421) 218-64252
> ----------------------------------------------
>
>
>
>