<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Thanks for your answer, Stefan. <br><br>I have commented the line 112 of the file CbcModel.cpp in order to undefine "small" as you suggested and it compiled fine.<br><br>When I look at the CPU activity on my dual-core during the branch-and-cut, apparently both CPU seems to work, but the total CPU usage remains close to 50%.<br>The bevahior seems very similar to the non-parallel version of Cbc... <br><br>Do I have to change something when I call Cbc from my code (to indicate to Cbc, for example, the number of CPU) ? <br><br>Thanks again!<br><br>Joel.<br><br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">----- Message d'origine ----<br>De : Stefan Vigerske
 &lt;stefan@math.hu-berlin.de&gt;<br>À : Joel Joel &lt;joel_31415@yahoo.fr&gt;<br>Cc : cbc@list.coin-or.org<br>Envoyé le : Lundi, 6 Octobre 2008, 17h23mn 28s<br>Objet&nbsp;: Re: [Cbc] Parallel version of Cbc<br><br>Hi,<br><br>&gt; I have compiled Cbc (SVN revision 1087) with MinGW, using the the "standard" procedure: configure, make, make <br>install.<br>&gt; I am able to use Cbc as a static library and it works fine. <br>&gt; <br>&gt; I wanted to try the parallel version of Cbc, using: ".\configure --enable-cbc-parallel".<br>&gt; <br>&gt; 1°) During the configuration script, I have the following warning message: <br>&gt;&nbsp; &nbsp;  "-lrt unavailable; using gettimeofday instead of clock_gettime"<br>&gt; <br>&gt; 2°) During Cbc compilation, I have an error message:<br>&gt; [...]<br>&gt; CbcModel.cpp:7869: error: expected unqualified-id before '=' token<br><br>bool small = size&lt;=550;<br><br>This more looks like a problem with including windows.h
 (which, as Laci <br>found out, defines "small"). Maybe it get included by pthread.h ?<br><br>Therefore, try a<br>#undef small<br>somewhere before.<br><br>&gt; Could anyone give me some help?<br>&gt; - Is the librt library mandatory?&nbsp; If yes, where can I download it? <br><br>It is used for time measuring.<br>For Cbc/stable/2.2, librt is optional, but I don't know if the <br>corresponding changes have made it into Cbc/trunk.<br><br>&gt; - Is it currently possible to compile a parallel version of Cbc or is it too early? If yes, what am I doing wrong? <br><br>Works fine for me.<br><br>Stefan<br><br>-- <br>Stefan Vigerske<br>Humboldt University Berlin, Numerical Mathematics<br><a href="http://www.math.hu-berlin.de/%7Estefan" target="_blank">http://www.math.hu-berlin.de/~stefan</a><br></div></div></div><br>



      </body></html>