Type 'msconfig' into the Windows Search Box and hit Enter. Select the Boot tab and then Advanced options. Check the box next to Number of processors and select the number of cores you want to use (probably 1, if you are having compatibility issues) from the menu. Select OK and then Apply.
From the System Utilities screen, select System Configuration > BIOS/Platform Configuration (RBSU) > System Options > Processor Options > Processor Core Disable and press Enter. Enter the number of cores to enable per processor socket and press Enter. If you enter an incorrect value, all cores are enabled.
MacBook Pros (as of Spring 2018) have a maximum of 4 cores – described as 'quad-core' CPUs. Choose Compressor > Preferences (or press Command-Comma). Click Advanced. Select the “Enable additional Compressor instances” checkbox, then choose a number of instances from the pop-up menu.
Another generic, non-Qt-related way to tell nmake
to use all the cores is to set environmental variable CL
to /MP
:
set CL=/MP
nmake
will use all the CPU cores.
QT has a tool for this: http://download.qt.io/official_releases/jom/
They also use it per default in Qt creator.
According to MSDN, there's no such option for nmake
.
You can however make the compiler build multiple files in parallel by using the /MP
option with the VC++ command line compiler and passing multiple files at the same time:
> cl /MP a.cpp b.cpp c.cpp
However note that most Makefiles don't call the compiler like this - they usual invoke the compiler separate for each individual source file, which would prevent the /MP
option from doing anything useful.
Incredibuild claims to be able to run nmake builds on multiple cores / multiple machines. I don't have any experience of it.
The CMake 2.8.1 RC1, as for the time of writing this it's ready to try, does bring new generator for NMake which is called NMake Makefiles JOM and it generates NMake with specific settings for jom, which is the drop in replacement of NMake. Thus, it gives multi-processing enabled building using NMake.
Quick googling gives: http://msdn.microsoft.com/en-us/library/bb385193.aspx
This doesn't work for normal makefiles, but there is a setting in Visual Studio 2005 that lets you build more than one .vcproj file at the same time (provided one isn't dependent on the other). Tools -> Options -> Projects and Solutions -> Build and Run -> X maximum number of parallel project builds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With