> If you open the "Tools > Options" dialog in Visual Studio, and
> navigate to the "Projects and Solutions > Build and Run" tab, what is
> your "maximum number of parallel project builds" value?

This is set to 8, which is what I expect as I have 4 cores with
hyperthreading (also to windows they show as 8 cores).

>
> For maximum parallel build capability, it should be set to the same as
> the number of cores you have.

Yves
 Tue, Jan 20, 2015 at 7:10 AM, Yves Frederix
> <yves.frederix+cm...@gmail.com> wrote:
>>>> 3.1.0:    10m50s
>>>> 2.8.12:   4m02s
>>>> 3.1.0 (/MP): 6m29s
>>>> 2.8.12 (/MP): 3m48s
>>>
>>> I cannot reproduce that.  On my machine for OpenCV (as of commit
>>> 5e92a777) I get about the same time for either version of CMake.
>>>
>>>  3.1.0         : 8m57s
>>>  2.8.12.2      : 8m58s
>>>  3.1.0    (/MP): 4m52s
>>>  2.8.12.2 (/MP): 4m57s
>>>
>>> Check in your cases that 3.1.0 does not activate additional parts of
>>> the project that are not built under 2.8.12.
>>>
>>> Also please try a command-line build with just "msbuild" instead of
>>> going through "cmake --build":
>>>
>>>  msbuild ALL_BUILD.vcxproj /p:Configuration=Release 
>>> /p:VisualStudioVersion=12.0
>>
>> (shouldn't this have been VisualStudioVersion=11.0?)
>>
>> So here are the timings:
>>
>> 3.1.0: 11m52s
>> 2.8.12: 11m21s
>>
>> When keeping an eye on the resource monitor, I can also see that,
>> while "cmake --build ." makes use of all the CPU cores (for 2.8.12) ,
>> this is not the case while running msbuild manually.
>>
>> Yves
>> --
>>
>> Powered by www.kitware.com
>>
>> Please keep messages on-topic and check the CMake FAQ at: 
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Kitware offers various services to support the CMake community. For more 
>> information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at 
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/cmake
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to