<div dir="ltr"><div>To Yann-Collette,</div><div>Okay, how did you compile in MS Visual C/C++?</div><div>Is it debug or release??</div><div><br></div><div>The time difference would be about the same, like 4 times,</div><div>
or even more if you change from debug to release.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 9, 2014 at 6:00 PM,  <span dir="ltr">&lt;<a href="mailto:clp-request@list.coin-or.org" target="_blank">clp-request@list.coin-or.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Clp mailing list submissions to<br>
        <a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://list.coin-or.org/mailman/listinfo/clp" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:clp-request@list.coin-or.org">clp-request@list.coin-or.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:clp-owner@list.coin-or.org">clp-owner@list.coin-or.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Clp digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Clp trunk - windows problem (Stefan Vigerske)<br>
   2. Re: Clp trunk - windows problem (Yann COLLETTE)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 09 Aug 2014 13:17:43 +0200<br>
From: Stefan Vigerske &lt;<a href="mailto:stefan@math.hu-berlin.de">stefan@math.hu-berlin.de</a>&gt;<br>
To: &quot;<a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a>&quot; &lt;<a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a>&gt;<br>
Subject: Re: [Clp] Clp trunk - windows problem<br>
Message-ID: &lt;<a href="mailto:53E60357.6040503@math.hu-berlin.de">53E60357.6040503@math.hu-berlin.de</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hi,<br>
<br>
ok, it&#39;s now using Sleep(1) on Windows, i.e. wait 1 millisecond.<br>
On other systems it&#39;s now usleep(100), which will wait 0.1 milliseconds<br>
- that should be the same as before.<br>
<br>
Stefan<br>
<br>
On 07/29/2014 01:56 PM, <a href="mailto:ycollette.nospam@free.fr">ycollette.nospam@free.fr</a> wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I tried to compile Cbc / Clp trunk under windows with the intel compiler and I found a problem: there is no nanosleep function under windows.<br>
&gt;<br>
&gt; I found an equivalent function for windows: Sleep which take a number of milliseconds as argument.<br>
&gt;<br>
&gt; #ifdef _WINDOWS<br>
&gt; #include &lt;windows.h&gt;<br>
&gt; #else<br>
&gt; #include &lt;unistd.h&gt;<br>
&gt; #define Sleep(x) usleep((x)*1000)<br>
&gt; #endif<br>
&gt;<br>
&gt; Then use like this:<br>
&gt;<br>
&gt; Sleep(how_many_milliseconds);<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; YC<br>
&gt; _______________________________________________<br>
&gt; Clp mailing list<br>
&gt; <a href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a><br>
&gt; <a href="http://list.coin-or.org/mailman/listinfo/clp" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a><br>
&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 09 Aug 2014 13:27:55 +0200<br>
From: Yann COLLETTE &lt;<a href="mailto:ycollette.nospam@free.fr">ycollette.nospam@free.fr</a>&gt;<br>
To: Stefan Vigerske &lt;<a href="mailto:stefan@math.hu-berlin.de">stefan@math.hu-berlin.de</a>&gt;, &quot;<a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a>&quot;<br>
        &lt;<a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a>&gt;<br>
Subject: Re: [Clp] Clp trunk - windows problem<br>
Message-ID: &lt;<a href="mailto:53E605BB.70307@free.fr">53E605BB.70307@free.fr</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hello,<br>
<br>
Thanks.<br>
I have noticed a big performance difference between linux and windows.<br>
On the same problem, it takes 10 minutes under linux and 40 under<br>
Windows (on the same kind of machine).<br>
With the same parameters (I use Clp has a library, not the executable),<br>
there are numerical differences (under windows, the pivot threshold is<br>
fined tuned by clp which is not the case under linux. I noticed this<br>
because on Cbc-2.8.9, there was an abort() in the pivot threshold fine<br>
tuning code which is not present anymore in the cbc / clp trunk).<br>
<br>
What can explain this numerical behavior difference between windows and<br>
linux ?<br>
<br>
I disabled the scaling under windows under clp and this disabling<br>
reduces the performance gap: 20 minutes instead of 40.<br>
<br>
Best regards,<br>
<br>
YC<br>
<br>
<br>
Le 09/08/2014 13:17, Stefan Vigerske a ?crit :<br>
&gt; Hi,<br>
&gt;<br>
&gt; ok, it&#39;s now using Sleep(1) on Windows, i.e. wait 1 millisecond.<br>
&gt; On other systems it&#39;s now usleep(100), which will wait 0.1<br>
&gt; milliseconds - that should be the same as before.<br>
&gt;<br>
&gt; Stefan<br>
&gt;<br>
&gt; On 07/29/2014 01:56 PM, <a href="mailto:ycollette.nospam@free.fr">ycollette.nospam@free.fr</a> wrote:<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I tried to compile Cbc / Clp trunk under windows with the intel<br>
&gt;&gt; compiler and I found a problem: there is no nanosleep function under<br>
&gt;&gt; windows.<br>
&gt;&gt;<br>
&gt;&gt; I found an equivalent function for windows: Sleep which take a number<br>
&gt;&gt; of milliseconds as argument.<br>
&gt;&gt;<br>
&gt;&gt; #ifdef _WINDOWS<br>
&gt;&gt; #include &lt;windows.h&gt;<br>
&gt;&gt; #else<br>
&gt;&gt; #include &lt;unistd.h&gt;<br>
&gt;&gt; #define Sleep(x) usleep((x)*1000)<br>
&gt;&gt; #endif<br>
&gt;&gt;<br>
&gt;&gt; Then use like this:<br>
&gt;&gt;<br>
&gt;&gt; Sleep(how_many_milliseconds);<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt;<br>
&gt;&gt; YC<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Clp mailing list<br>
&gt;&gt; <a href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a><br>
&gt;&gt; <a href="http://list.coin-or.org/mailman/listinfo/clp" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a><br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Clp mailing list<br>
<a href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/clp" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a><br>
<br>
<br>
End of Clp Digest, Vol 110, Issue 2<br>
***********************************<br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Time is not Onedimensional!</div><div>And even if it were - it would still be too difficult for me to handle.---<br></div><div>Wolfgang M. Hartmann</div>
<div><br></div><div>On YouTube: <a href="http://www.youtube.com/watch?v=HE16lQWprwg&amp;feature=youtu.be" style="color:rgb(17,85,204)" target="_blank">http://www.youtube.com/watch?v=HE16lQWprwg&amp;feature=youtu.be</a></div>
<div> <a href="http://www.wcmat.com/wolfgang" target="_blank">www.wcmat.com/wolfgang</a> </div></div>
</div>