[Insight-developers] vxl update
Hans Johnson
hans-johnson at uiowa.edu
Wed Dec 8 13:02:29 EST 2010
Here are the flags that we use for performance:
set ( CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3 -msse -mmmx -msse2 -m64 -Wall -W
-Wshadow -Wcast-qual -Wwrite-strings" CACHE STRING "" )
CC=gcc4 CXX=g++4 ccmake ../ITK
Hans
--
Hans J. Johnson, Ph.D.
Hans-johnson at uiowa.edu
278 GH
The University of Iowa
Iowa City, IA 52241
(319) 353 8587
> From: "Matthew McCormick (thewtex)" <matt at mmmccormick.com>
> Reply-To: "Matthew McCormick (thewtex)" <matt at mmmccormick.com>
> Date: Wed, 8 Dec 2010 11:50:32 -0600
> To: Hans Johnson <hans-johnson at uiowa.edu>
> Cc: Bill Lorensen <bill.lorensen at gmail.com>, ITK <insight-developers at itk.org>
> Subject: Re: [Insight-developers] vxl update
>
> Hi Hans,
>
> Here is what I get,
>
> mmmccormick at mpded ~$ gcc --version
> gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
>
> mmmccormick at mpded ~$ gcc4 --version
> gcc4 (GCC) 4.1.0 20060515 (Red Hat 4.1.0-18)
>
> I will try to see if I can use gcc4 over the next week, and we will
> see how it goes.
>
> Thanks,
> Matt
>
>
> On Wed, Dec 8, 2010 at 10:37 AM, Hans Johnson <hans-johnson at uiowa.edu> wrote:
>> Matthew,
>>
>> It is the default, but is gcc4 already installed? I'm almost certain that
>> RedHat EL4 defaults to gcc3, but gcc4 is usually installed, or is easy to
>> install.
>>
>> Perhaps you are going to prove my hypothesis incorrect.
>>
>> PS: I've found significant performance improvements when using gcc4. If
>> performance is an issue, I'd recommend you use gcc4 in release mode. There
>> are some compiler options that really help with performance that are only
>> available in gcc4.
>>
>>
>> Hans
>> --
>> Hans J. Johnson, Ph.D.
>> Hans-johnson at uiowa.edu
>>
>> 278 GH
>> The University of Iowa
>> Iowa City, IA 52241
>> (319) 353 8587
>>
>>
>>> From: "Matthew McCormick (thewtex)" <matt at mmmccormick.com>
>>> Reply-To: "Matthew McCormick (thewtex)" <matt at mmmccormick.com>
>>> Date: Wed, 8 Dec 2010 09:38:48 -0600
>>> To: Bill Lorensen <bill.lorensen at gmail.com>
>>> Cc: Hans Johnson <hans-johnson at uiowa.edu>, ITK <insight-developers at itk.org>
>>> Subject: Re: [Insight-developers] vxl update
>>>
>>> On Wed, Dec 8, 2010 at 9:08 AM, Bill Lorensen <bill.lorensen at gmail.com>
>>> wrote:
>>>> I don't think we should drop gcc 3.x. For example, my mingw gcc
>>>> compiler is 3.4.5 and builds ITK just fine. It is a recent download of
>>>> mingw.
>>>>
>>>> I'm sure there are a lot of folks out there still using gcc 3.x
>>>>
>>>
>>> It is default for the Condor cluster I use.
>>
>>
More information about the Insight-developers
mailing list