I'm attempting to utilize all 12 cores of our build server, but am unable to specify /M12 and get all 12 cores working on the build. It appears as though /M4 is the limit. Is this true? Is there anything I can do to use all 12 cores in our builds?
I'm using the following command line to run the build:
"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\vcbuild.exe" /M12 C:\Projects\solution1.sln
The build treats it as if I specified one core based on how long the build takes to run and the initial output I receive is:
1) Build started: Project: Project1, Configuration: Release
If I use /M4 in the command line instead of /M12, the build goes much faster, and I receive this as the starting output:
5) Build started: Project: Project5, Configuration: Release
1) Build started: Project: Project1, Configuration: Release
2) Build started: Project: Project2, Configuration: Release
7) Build started: Project: Project7, Configuration: Release
I've tried not specifying the number of cores as well, but it treats it as if the machine has only one core or as if I had specified /M1.
I checked the system environment variable NUMBER_OF_PROCESSORS and it is still set to 12.
Any help with this would be appreciated.
-Seth