<div dir="ltr">I have been using /MP  for a while now, and recall needing it on VS2010 as well (but that was a while ago so I may be misremembering).<div><br></div><div>To avoid the problem that Matt mentions, you can give it an argument for the maximum number of processes (by default, it will pick the number of effective cores it can find).  </div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 11:24 AM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Matt,<br>
<br>
My point was that with VS10 and prior we were getting good target level parallelism, while it appears that with VS11 we are no long getting good target level parallelism and need this additional compiler level parallelism that "/MP" provides.<br>


<br>
I don't understand is something change to cause this. Why?<br>
<br>
Have other experience the same things?<br>
<br>
Brad<br>
<div class="HOEnZb"><div class="h5"><br>
On Feb 10, 2014, at 10:53 AM, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>> wrote:<br>
<br>
> Hi Brad,<br>
><br>
> My understanding is that this flag can be very helpful for speeding<br>
> things up when the system can handle it, but it is not on by default,<br>
> because, from the article "The downside is that the IDE will still<br>
> perform target level parallelism along with object level parallelism<br>
> which can lead to excessive parallelism grinding your machine and GUI<br>
> to a halt."<br>
><br>
> Thanks,<br>
> Matt<br>
><br>
> On Mon, Feb 10, 2014 at 9:30 AM, Bradley Lowekamp<br>
> <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:<br>
>> Hello,<br>
>><br>
>> I just added the "/MP" flag to my "Win32-VS11-Release-Shared"[1] build, based on information from reading Kitware blog entry entitled "CMake: building with all your cores"[3]. Adding this flag changed the build time from 5h47min to 1hr10min . I don't recall having to do this before with VS10, VS9, has something changed with these more recent Visual Studios?<br>


>><br>
>> The system is running on a VM, allocated 4 cores and 16GB of memory. Many of the VS11/VS12 build have been taking over 2hrs and a couple much longer.<br>
>><br>
>> This chart is an indication of the excessive build time on this system:<br>
>> <a href="http://open.cdash.org/viewSite.php?siteid=8833&project=2&currenttime=1391907600" target="_blank">http://open.cdash.org/viewSite.php?siteid=8833&project=2&currenttime=1391907600</a><br>
>><br>
>> Incidentally the recent VS11 builds I have setup for SimpleITK don't seem to suffer from the same issue.<br>
>><br>
>><br>
>><br>
>> [1] <a href="http://open.cdash.org/buildSummary.php?buildid=3213955" target="_blank">http://open.cdash.org/buildSummary.php?buildid=3213955</a><br>
>> [2] <a href="http://open.cdash.org/viewNotes.php?buildid=3213955" target="_blank">http://open.cdash.org/viewNotes.php?buildid=3213955</a><br>
>> [3] <a href="http://www.kitware.com/blog/home/post/434" target="_blank">http://www.kitware.com/blog/home/post/434</a><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
</div></div></blockquote></div><br></div>