[CppAD] Possible bug in CppAD: multithreading

João Leal joaoruileal at gmail.com
Mon Jan 26 05:44:35 EST 2015


Hello Brad,

I might have found an issue with the multithread setup in CppAD.
I realized that CppAD must be called once before multithreading setup is
performed, otherwise  an assert() will fail.

I have a attached a file where the issue appears (near copy from
team_pthread.cpp).
This example will only work if team_example() is called one time with
num_threads = 1 before being called with num_threads>1.

Best regards,
João Leal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cppad/attachments/20150126/dddc1119/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cppad_pthreads.cpp
Type: text/x-c++src
Size: 14312 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/cppad/attachments/20150126/dddc1119/attachment-0001.bin>


More information about the CppAD mailing list