[CppAD] OpenMP error in debug mode

Brad Bell bradbell at seanet.com
Fri Feb 18 08:44:50 EST 2011


I forgot to mention that, in the value for other_flags, you should change
     -NDEBUG -O2
testing without CppAD error checking and with optimization, to
     -g
testing with CppAD error checking and enabling use of the debugger.

Doing so on my system has verified your bug report below. I will look 
into it.

Thanks.

On 2/18/2011 5:28 AM, Brad Bell wrote:
> The shell script openmp/run.sh can be used to test using CppAD with
> OpenMP on your system.
> You will need to change the value of openmp_flag to so so; see
>
> http://www.coin-or.org/CppAD/Doc/openmp_run.sh.xml#Purpose.OpenMP%20Flag
> Please do so and then try running this test on your system.
> This will test to case where there _OPENMP is defined and there is only
> one thread.
>
> P.S.
> I recently fixed a minor problem with openmp/run.sh. You can make the
> same change to your local copy, or download a current copy of CppAD.
>
>
> On 2/16/2011 4:29 AM, schattenpflanze at arcor.de wrote:
>>> Did you set the maximum number of threads with using the routine
>>> http://www.coin-or.org/CppAD/Doc/omp_max_thread.xml
>>>
>>> The error message says 'unknown source' so for some reason CppAD
>>> `thinks' you have, but I am just checking.
>> At first I thought that calling omp_max_thread() earlier in my program
>> had solved the problem. Unfortunately, the error still occurs if I
>> compile with OpenMP support but at the same time set the number of
>> threads to 1 (i.e., no actual multithreading occurs). If I call
>> omp_max_thread(2), although I use only a single thread, the error does
>> not occur.
>>
>> Best regards,
>> Peter
>>
>> _______________________________________________
>> CppAD mailing list
>> CppAD at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/cppad
>>
> _______________________________________________
> CppAD mailing list
> CppAD at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cppad
>



More information about the CppAD mailing list