[Ipopt] Run ipopt instance per thread for parallel computing

Jonathan Hogg jonathan.hogg at stfc.ac.uk
Thu Jul 26 03:53:12 EDT 2012


MA27 has been thread safe since 2001 - all state is held in the arguments.

Jonathan.

On 25/07/12 23:43, Damien wrote:
> All,
>
> The crashes on that ticket are probably caused by Fortran SAVE or 
> COMMON statements in the linear solvers.  MUMPS had them for sure, and 
> given how old MA27 is it probably does too.  There was some discussion 
> on the MUMPS list a while back about running multiple instances of 
> MUMPS, and if my memory serves me correctly it was done by wrapping 
> the SAVE statements with OMP THREADPRIVATE directives so that global 
> memory was separated for each instance. Since then MUMPS might have 
> been modified, I'll look through the old MUMPS list and try and find 
> the mail thread that had a working solution on it.
>
> Damien
>
> On 25/07/2012 3:41 PM, George Zhou wrote:
>>
>> Hi, All,
>>
>> https://projects.coin-or.org/Ipopt/ticket/167#comment:1,
>>
>> From Andreas's comments, I think the following two changes could make 
>> application run ipopt in parallel, as long each thread only access 
>> its own instance of ipopt
>>
>> 1)Declare ipopt as TLS variable. (per thread based)
>>
>> 2)In Ipopt/src/Common/IpTaggedObject.hpp, change the following two 
>> variables as TLS variable or atomic ones:
>>
>> static Tag unique_tag_;
>>
>> Tag tag_
>>
>> Anyone has successful story to run multiple instances of ipopt in one 
>> application?
>>
>> Thanks
>>
>> George
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> *  George Zhou**
>> **Senior Developer*
>>
>>      Spot Trading L.L.C
>>      440 South LaSalle St., Suite 2800
>>      Chicago, IL 60605
>>      Office: 312.362.4550
>>      Direct: 312-362-4699
>>      Fax: 312.362.4551
>> George.Zhou at spottradingllc.com
>> www.spottradingllc.com <http://www.spottradingllc.com/>
>>
>> ------------------------------------------------------------------------
>>
>> The information contained in this message may be privileged and 
>> confidential and protected from disclosure. If the reader of this 
>> message is not the intended recipient, or an employee or agent 
>> responsible for delivering this message to the intended recipient, 
>> you are hereby notified that any dissemination, distribution or 
>> copying of this communication is strictly prohibited. If you have 
>> received this communication in error, please notify us immediately by 
>> replying to the message and deleting it from your computer. Thank 
>> you. Spot Trading, LLC
>>
>>
>>
>> _______________________________________________
>> Ipopt mailing list
>> Ipopt at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/ipopt
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt


-- 
Scanned by iCritical.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20120726/6ecaee0c/attachment-0001.html>


More information about the Ipopt mailing list