Re: [eigen] Help on solving a race condition

[ Thread Index | Date Index | More Archives ]

On 06/14/2012 03:37 AM, Gael Guennebaud wrote:

On Thu, Jun 14, 2012 at 6:05 AM, Jim Bosch <talljimbo@xxxxxxxxx> wrote:
I'm a little surprised the configure-time solution that was brought up early
in this thread was dismissed so quickly.  Sure, it's nice to be able to use
Eigen's headers as-is with no build at all today, but a machine-generated
header file that contains these values as true constants wouldn't be such a
terrible thing to add.

as I said, this is not an option because these values depend on the
underlying hardware. So such an approach makes impossible to
distribute configured version of Eigen nor binary that uses Eigen.

I'd certainly personally much prefer to have to run a script to generate a
header when I install Eigen over having to call a function every time I use

Note that this function will have to be called only in the case the
user code is multi-threaded.

Thanks for the clarifications. I can see why generated headers is a non-starter, and I'm certainly much less bothered if the initialization function is only necessary for multi-threaded code.


Mail converted by MHonArc 2.6.19+