No subject
Mon Jul 16 16:50:38 EDT 2012
cation run ipopt in parallel, as long each thread only access its own insta=
nce of ipopt
1) Declare ipopt as TLS variable. (per thread based)
2) In Ipopt/src/Common/IpTaggedObject.hpp, change the following two va=
riables as TLS variable or atomic ones:
static Tag unique_tag_;
Tag tag_
Anyone has successful story to run multiple instances of ipopt in one appli=
cation?
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 confidentia=
l and protected from disclosure. If the reader of this message is not the i=
ntended recipient, or an employee or agent responsible for delivering this =
message to the intended recipient, you are hereby notified that any dissemi=
nation, distribution or copying of this communication is strictly prohibite=
d. If you have received this communication in error, please notify us immed=
iately by replying to the message and deleting it from your computer. Thank=
you. Spot Trading, LLC
--_000_D3404CC6F9F5FC40B71BA6A6E282563F4CE0A64BEBSPOTMAILspott_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:p=3D"urn:schemas-m=
icrosoft-com:office:powerpoint" xmlns:a=3D"urn:schemas-microsoft-com:office=
:access" xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s=3D"=
uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs=3D"urn:schemas-microsof=
t-com:rowset" xmlns:z=3D"#RowsetSchema" xmlns:b=3D"urn:schemas-microsoft-co=
m:office:publisher" xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadshee=
t" xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" xmlns=
:odc=3D"urn:schemas-microsoft-com:office:odc" xmlns:oa=3D"urn:schemas-micro=
soft-com:office:activation" xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc=3D"http://m=
icrosoft.com/officenet/conferencing" xmlns:D=3D"DAV:" xmlns:Repl=3D"http://=
schemas.microsoft.com/repl/" xmlns:mt=3D"http://schemas.microsoft.com/share=
point/soap/meetings/" xmlns:x2=3D"http://schemas.microsoft.com/office/excel=
/2003/xml" xmlns:ppda=3D"http://www.passport.com/NameSpace.xsd" xmlns:ois=
=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir=3D"http://=
schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds=3D"http://www.w3=
.org/2000/09/xmldsig#" xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint=
/dsp" xmlns:udc=3D"http://schemas.microsoft.com/data/udc" xmlns:xsd=3D"http=
://www.w3.org/2001/XMLSchema" xmlns:sub=3D"http://schemas.microsoft.com/sha=
repoint/soap/2002/1/alerts/" xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#"=
xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" xmlns:sps=3D"http://=
schemas.microsoft.com/sharepoint/soap/" xmlns:xsi=3D"http://www.w3.org/2001=
/XMLSchema-instance" xmlns:udcs=3D"http://schemas.microsoft.com/data/udc/so=
ap" xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udc=
p2p=3D"http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf=3D"http:/=
/schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss=3D"http://sche=
mas.microsoft.com/office/2006/digsig-setup" xmlns:dssi=3D"http://schemas.mi=
crosoft.com/office/2006/digsig" xmlns:mdssi=3D"http://schemas.openxmlformat=
s.org/package/2006/digital-signature" xmlns:mver=3D"http://schemas.openxmlf=
ormats.org/markup-compatibility/2006" xmlns:m=3D"http://schemas.microsoft.c=
om/office/2004/12/omml" xmlns:mrels=3D"http://schemas.openxmlformats.org/pa=
ckage/2006/relationships" xmlns:spwp=3D"http://microsoft.com/sharepoint/web=
partpages" xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/services/20=
06/types" xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/services/200=
6/messages" xmlns:pptsl=3D"http://schemas.microsoft.com/sharepoint/soap/Sli=
deLibrary/" xmlns:spsl=3D"http://microsoft.com/webservices/SharePointPortal=
Server/PublishedLinksService" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns:=
st=3D"" xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta http-equi=
v=3DContent-Type content=3D"text/html; charset=3Dus-ascii"><meta name=3DGen=
erator content=3D"Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:209999531;
mso-list-type:hybrid;
mso-list-template-ids:1974876096 67698705 67698713 67698715 67698703 67698=
713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><!--ppd1000035--><div class=3DWordSection1><p class=3DMsoNormal=
>Hi, All,<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class=
=3DMsoNormal> <a href=3D"https://projects.coin-or.org/Ipopt/ticket/167#comm=
ent:1">https://projects.coin-or.org/Ipopt/ticket/167#comment:1</a>,<o:p></o=
:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>From =
Andreas’s comments, I think the following two changes could make appl=
ication run ipopt in parallel, as long each thread only access its own inst=
ance of ipopt<o:p></o:p></p><p class=3DMsoNormal> <o:p></o:p></p><p class=
=3DMsoListParagraph style=3D'text-indent:-.25in;mso-list:l0 level1 lfo1'><!=
[if !supportLists]><span style=3D'mso-list:Ignore'>1)<span style=3D'font:7.=
0pt "Times New Roman"'> </span></span><![endi=
f]>Declare ipopt as TLS variable. (per thread based)<o:p></o:p></p><p class=
=3DMsoListParagraph style=3D'text-indent:-.25in;mso-list:l0 level1 lfo1'><!=
[if !supportLists]><span style=3D'mso-list:Ignore'>2)<span style=3D'font:7.=
0pt "Times New Roman"'> </span></span><![endi=
f]>In Ipopt/src/Common/IpTaggedObject.hpp, change the following two variabl=
es as TLS variable or atomic ones:<o:p></o:p></p><p class=3DMsoListParagrap=
h style=3D'margin-left:1.0in'>static Tag unique_tag_;<o:p></o:p></p><p clas=
s=3DMsoListParagraph style=3D'margin-left:1.0in'>Tag tag_<o:p></o:p></p><p =
class=3DMsoNormal>Anyone has successful story to run multiple instances of =
ipopt in one application?<o:p></o:p></p><p class=3DMsoNormal><o:p> </o=
:p></p><p class=3DMsoNormal>Thanks<o:p></o:p></p><p class=3DMsoNormal>Georg=
e<o:p></o:p></p><p class=3DMsoListParagraph><o:p> </o:p></p></div><br =
/><br />
<HR align=3Dleft width=3D250 color=3D#000066 SIZE=3D2>
<P align=3Dleft><FONT face=3DArial color=3D#000066 size=3D2><STRONG> =
=20
George Zhou</STRONG><FONT=20
size=3D1> </FONT><STRONG><FONT=20
size=3D1><BR> </FONT></STRONG></FONT><FONT fac=
e=3DArial=20
color=3D#000066 size=3D2><STRONG><FONT=20
size=3D1>Senior Developer</FONT></STRONG></FONT><FONT face=3DArial color=3D=
#000066=20
size=3D2><BR><BR></FONT><FONT face=3DArial color=3D#000066=20
size=3D1> Spot Trading L.L.C<BR> =
=20
440 South LaSalle St., Suite 2800<BR> Chicago, IL=
=20
60605<BR> Office:=20
312.362.4550 <BR>  =
;Direct:=20
312-362-4699 <BR>  =
;Fax:=20
312.362.4551<BR> George.Zhou at spottradingllc.co=
m </FONT><FONT face=3DArial color=3D#000066=20
size=3D1></FONT><FONT=20
face=3DArial color=3D#000066 size=3D1><BR> <A=
=20
href=3D"http://www.spottradingllc.com/">www.spottradingllc.com</A>=20
</FONT></P><FONT size=3D1></FONT>
<HR align=3Dleft width=3D250 color=3D#000066 SIZE=3D2>
<P align=3Dleft><FONT face=3Darial color=3D#000066 size=3D1>The information=
contained in=20
this message may be privileged and confidential and protected from disclosu=
re.=20
If the reader of this message is not the intended recipient, or an employee=
or=20
agent responsible for delivering this message to the intended recipient, yo=
u are=20
hereby notified that any dissemination, distribution or copying of this=20
communication is strictly prohibited. If you have received this communicati=
on in=20
error, please notify us immediately by replying to the message and deleting=
it=20
from your computer. Thank you. Spot Trading, LLC</FONT></P>
<P> =
=20
</P></body></html>=
--_000_D3404CC6F9F5FC40B71BA6A6E282563F4CE0A64BEBSPOTMAILspott_--
More information about the Ipopt
mailing list