[Insight-users] L-BFGS behaves differently in release with debug and release without debug

Cory Quammen cquammen at cs.unc.edu
Fri Oct 5 00:43:42 EDT 2012


How different are the results? I wouldn't be surprised if the
optimizations made in Release mode could cause small differences in
numerical results.

Cory


On Thu, Oct 4, 2012 at 11:20 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> It is difficult to diagnose without seeing your code or a small compilable
> example that illustrates the problem.
>
> Usually if a program runs differently in debug and release there are
> uninitialized variables. Another possibility is accessing invalid memory or
> memory that is corrupted by the program. If you have access to a linux
> system, you could try running valgrind to find the source of the error.
>
>
> On Thu, Oct 4, 2012 at 6:17 PM, Sureerat Reaungamornrat
> <sureerat.r at gmail.com> wrote:
>>
>> Dear All,
>>
>>    We have a question regarding 'v3p_netlib_lbfgs_' function which was
>> included in ITK version 4.0.0 in the file
>>
>> path-to-ITK-source\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\opt\lbfgs.h
>>
>>    We are not sure whether we should put this question to ITK or VXL
>> mailing-lists.
>>
>>    Our problem is that we use v3p_netlib_lbfgs_ in our code to optimize
>> the same function and same data but
>> we get different results when we ran our code in different modes: Release
>> and Debug. We tested our code in Window 7
>> using 64-bit Visual Studio 2008.
>>
>>    Would anyone have any suggestions? Any suggestions are very
>> appreciated.
>>
>> Thank you very much,
>>
>> Best regards,
>>
>> Sureerat
>>
>>
>>
>>
>>
>>
>>
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill


More information about the Insight-users mailing list