On 27 November 2012 14:47, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, Nov 27, 2012 at 9:41 AM, Mateusz Loskot <<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>> wrote:<br>
> On 27 November 2012 14:23, John Drescher <<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>> wrote:<br>
>><br>
>> On Tue, Nov 27, 2012 at 7:21 AM, Michael Jackson<br>
>> <<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>> wrote:<br>
>> ><br>
>> ><br>
>> > On Nov 27, 2012, at 12:46 AM, Titus von Boxberg <<a href="mailto:titus@v9g.de">titus@v9g.de</a>> wrote:<br>
>> ><br>
>> >> Am 27.11.2012 05:24, schrieb Michael Jackson:<br>
>> >>> That will teach me to hit enter in GMail..<br>
>> >>><br>
>> >>> My question is this: What is the magic CMake incantation to get Visual<br>
>> >>> Studio 2010 to use more than a single processor when compiling my<br>
>> >>> project?<br>
>> >> You could add /MP to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS<br>
>> >><br>
>> >> Regards<br>
>> >> Titus<br>
>> >> --<br>
>> >><br>
>> ><br>
>> ><br>
>> > Thanks for the tip. I'll give it a try.<br>
>><br>
>> I can tell you that sometimes its hard to get Visual Studio to make<br>
>> good use of your cores (especially if you have 8 or 12 threads) even<br>
>> though multithreded building is on. I believe there are too many parts<br>
>> of the chain that are single threaded only.<br>
><br>
><br>
> It's fairly easy to make both, VS and cl.exe, utilise multiple cores,<br>
> even using command line. The problem is that build configurations like<br>
> NMAKE require significant gymnastics:<br>
><br>
> <a href="http://public.kitware.com/pipermail/cmake/2012-September/052116.html" target="_blank">http://public.kitware.com/pipermail/cmake/2012-September/052116.html</a><br>
><br>
> It is easier with VS projects:<br>
><br>
> <a href="http://www.cmake.org/pipermail/cmake/2009-April/028669.html" target="_blank">http://www.cmake.org/pipermail/cmake/2009-April/028669.html</a><br>
<br>
</div></div>My comment was even though it will do multithreaded builds with VS<br>
projects for some projects it will build at very low CPU utilization<br>
for long periods while other projects it maxes out at 100% on all 12<br>
cores.</blockquote><div><br></div><div>Right, perhaps complex inter-project dependencies halt the processes.<br></div></div><br><br clear="all"><div><br></div>-- <br>Mateusz Loskot, <a href="http://mateusz.loskot.net" target="_blank">http://mateusz.loskot.net</a><br>
</div>