[MINC-development] -O3 breaks N3

Vladimir S. FONOV vladimir.fonov at gmail.com
Fri Apr 13 12:23:41 EDT 2012


Hello,

On 12-04-13 12:03 PM, Claude LEPAGE wrote:
>> looks like compiling EBTKS and/or N3 with -O3 flag (default for release
>> build in CMake) breaks nu_correct completely (i.e it doesn't converge).
>> Any ideas why it happens and how to fix it, apart from the obvious
>> suggestion of using -O2 flag of course.
>
> I prefer not to touch that code. It's quite a mess with the templates.
> Basically, it's very poorly designed C++ code. Perhaps running valgrind
> on it would give you clues where to look. Otherwise, be happy to use -O2.

Also, it turns out that even when nu_correct produces results it is 
slightly different between two versions. I assume that different comes 
from using different versions of gcc  or math libraries...

Since nu_correct is usually the first thing which is applied to the mri 
scan it raises some interesting questions on reproducibility of our 
research...

-- 
Best regards,

Vladimir S. FONOV ~ vladimir <dot> fonov <at> gmail <dot> com


More information about the MINC-development mailing list