Re: [eigen] Re: Infinite loop in gebp |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [eigen] Re: Infinite loop in gebp
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Wed, 27 Feb 2013 21:01:16 +0100
- 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=KtLrjpuidm+iHUFdkeqqMH2NxcbkZppE4NNJWNrRFrk=; b=dX3tmfEXm55b3CepticK4o7cnFPXgEzI2ow8HW0qXy2Vbq9zj2+gawqBqSxbF+SkSg GWbpWqHhBvNbA00argdqIXHJ/nQh+nEVSUqYNj1OekU1chKp7ZRnlIwHhMnfKgUmU3VN deKu2T9p1VI3TQtbepSJlcZmXw5rCR+XsVfj7/tPt/bH6/Dea3RyYHhq9ohya4vc7P0y tEkLajk9qOK+2HmzzlxZj+oP2omkWJroDiv6Bg4SG8A5GhdKQ3ntytmRb/74fOn6XZdh xGGPmuQlv+599SRWTSJw+VqIs5R8ompuX8txN/tfDMncgAafTWDq2oNyAjUeYllNYLIY FrUQ==
On mac I use the gcc of macports (http://www.macports.org/). It
provides all versions from 4.2 to 4.8-beta, as well as recent clang
version.
gael
On Wed, Feb 27, 2013 at 4:32 PM, Sameer Agarwal
<sameeragarwal@xxxxxxxxxx> wrote:
> Yes, but apple continues to ship gcc and I was hoping to use my mac for
> testing against gcc too. There is also the problem that there is no openmp
> support in clang right now, so compiling using gcc is the only way to
> develop and test with openmp.
>
> Sameer
>
>
>
> On Tue, Feb 26, 2013 at 4:10 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
> wrote:
>>
>> Sure -- Apple switched XCode to Clang a while ago, right?
>>
>>
>> 2013/2/26 Sameer Agarwal <sameeragarwal@xxxxxxxxxx>
>>>
>>> Thanks Gael. Good to know that I did not introduce some craziness, since
>>> this code has been running fine before this. I am guessing Apple has no
>>> plans on upgrading g++ beyond 4.2.1 due to GPL issues.
>>>
>>> Sameer
>>>
>>>
>>>
>>> On Tue, Feb 26, 2013 at 2:58 PM, Gael Guennebaud
>>> <gael.guennebaud@xxxxxxxxx> wrote:
>>>>
>>>> Hi Sameer,
>>>>
>>>> indeed, I've already observed wrong code generation with this apple
>>>> compiler, and I know that other heavily templated libraries observed
>>>> similar problems. In my case it concerned our iterative solvers.So
>>>> I'd not spend too much time on it but just to be sure it might still
>>>> be interesting to check with other gcc versions and valgrind.
>>>>
>>>> gael
>>>>
>>>> On Tue, Feb 26, 2013 at 6:24 PM, Sameer Agarwal
>>>> <sameeragarwal@xxxxxxxxxx> wrote:
>>>> > Sorry, I reported the wrong version of gcc. Here is the version
>>>> > string. It
>>>> > is 4.2.1 instead of 4.1.2
>>>> >
>>>> > 686-apple-darwin11-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot
>>>> > 3)
>>>> >
>>>> > Sameer
>>>> >
>>>> >
>>>> >
>>>> > On Tue, Feb 26, 2013 at 9:19 AM, Sameer Agarwal
>>>> > <sameeragarwal@xxxxxxxxxx>
>>>> > wrote:
>>>> >>
>>>> >> Hi Guys,
>>>> >>
>>>> >> I am using eigen 3.1.2 on a mac and I am observing an infinite loop
>>>> >> in
>>>> >>
>>>> >> Eigen::internal::gebp_kernel<double, double, long, 4, 4, false,
>>>> >> false>::operator()
>>>> >>
>>>> >> This is with g++4.1.2 -O3 -DNDEBUG -fast -msse3
>>>> >>
>>>> >> the same code works just fine with clang 4.0.0
>>>> >>
>>>> >> I can provide instructions for reproducing this (its
>>>> >> corrector_test.cc of
>>>> >> the Ceres Solver code base).
>>>> >>
>>>> >> But before I do that, is there anything know about this
>>>> >> compiler/Eigen/OS
>>>> >> combination?
>>>> >>
>>>> >> Thank you,
>>>> >> Sameer
>>>> >>
>>>> >
>>>>
>>>>
>>>
>>
>