Re: [eigen] strange sizeof on windows |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] strange sizeof on windows
- From: "Benoit Jacob" <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 5 Jan 2009 16:55:12 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Yep6d5Kaoi+H4bCfLEpvZAOqXrM9Td3tGvznGL9pM1M=; b=drelvehgsjdGGI2mqXyoeWm/+qDBYf/aYCRGpH4VtUlO/QRdsxL6ObYEabfidZ4hLj OhWmzU/jnAcy3VxaAGFA3noishW6NeUEa2d6Z69W2IBVQDnUPozGwXmgioQl3hjnAOmY a/j3eZC1j2ZA6xgFDMT+8anR/u0+YT91DLAcQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=JP0dkABsi/7UnL7ymqcgFWUNwXumj6B+3XXVjjjvb5y76c5aAq4r02Nb8kz0v3spYS E8r+6s5I4k1gcxFk/3LAM0GxGqpJTp2cEdUiZBQIT1vSpjvQj1mPUsrNAtIkROOhJ1dZ tp5uD+Va9pwnpw2PkffIn3MArAejTGyLIY+wM=
2009/1/5 Robert Carnecky Jr. <robin@xxxxxxxxxxxxx>:
> No, that was in full optimization mode with link time code generation.
> It was also orders of magnitude slower than plain C and crashed because my
> data was not
> correctly aligned due to the sizeof-problem above. So I figured I did
> something wrong with
> the compiler or preprocessor settings :)
I remember now that we recently (around beta3) realized that msvc was
massively failing to inline trivial functions -- sounds very related
to what you are reporting
We fixed that by using __forceinline with MSVC. So this issue should
be fixed now...
That said, older compilers (gcc 4.1, msvc 2005) don't give very good
performance with Eigen. (I don't have precise numbers for msvc though)
Cheers,
Benoit
---