Re: [eigen] enabling OpenMP in only a subset of a library |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [eigen] enabling OpenMP in only a subset of a library
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Tue, 14 May 2013 13:02:27 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=Hi/K9sD1ka5jruLW0miYRjlld8GtNzxka6WxMGA9G00=; b=g5JaOmfbYNo1HML4ZKewp4a5lABbD5Fk1Pvk9xLImzUuaPP/2UC9iHMB66hhGB364o YvN621Nd23va0GS269gVAD0b9Z7QFnnHOIw3ZqQ+A7aAGoKyOyUZ0c90AMtCUwPXXjGT t1OgIxW3MdnYAZ639z4Qas9x+5rT7gmopi3b1qDmMPQeE3pjB0jK8SxeLy2GjmSkjtYI 6FkWJen5VIiDUEBlKB1l4cJtWAvXzcLbx9gaF7X7wEz9S6vZ9Mt1O1dpmGW6ZLP3JGiG X0F9o3lta4FJNNuHIrPEDoYsVx5+ip9/kjxjTCLXdA8cUA9CGsFwXK980jWK1stNijw3 WhRw==
On Mon, May 13, 2013 at 5:43 PM, Jim Bosch <talljimbo@xxxxxxxxx> wrote:
> In the meantime, I have been tinkering with another possibility: including
> the Eigen headers within a namespace when compiling OpenMP-enabled code.
> This seems to work, though it's a bit fragile as you have to manually
> include all the standard library headers used by Eigen first.
This also blocks any communication between the two worlds but if
that's not an issue for you then that's a good solution. I cannot
really argue on the "hackishness" of the approach since we had to
employ a similar trick to support the SuperLU library;)
gael