DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Parallel compilation for Microsoft Visual C++ 2005 with dual / quad core  (Read 6,655 times)

Eóin

  • O'Callaghan
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,401
This is an absolute gem. I can't think of anything more to say about it other than it just works, and works fantastically. Why it's not a part of VS 2005 already I don't know.

Quote from: http://www.todobits.es/downloadmpcl.html
Close Visual Studio and uninstall any previous version before installing this new one or MPCL won't work properly.

NOTE: This is a beta version that will stop working on 1st of March, 2009. Then You will have to download an updated version if you want to continue using MPCL.

DOWNLOAD MPCL 0.65b

After installation, a new "MPCLAddin" entry will be shown under the tools menu.

MPCL won't parallelize compilation of .cpp files marked as "Create precompiled Header /Yc", so create only a few precompiled headers and mark all other files as "Use precompiled header /Yu"

You can disable Parallelization for specific projects in a solution, by adding NOMPCL to the list of Preprocessor definitions, in Project Settings/Configuration Properties/C/C++/Preprocessor. This option is only available from V0.65b
Interviewer: Is there anything you don't like?
Bjarne Stroustrup: Marketing hype as a substitute for technical argument. Thoughtless adherence to dogma. Pride in ignorance.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Hmm, the official /MP switch wasn't added in 2005? Can it really be that it wasn't added until 2008? Not even as an undocumented option in 2005? Only problem with /MP switch is that it's stored in your .vcproj file, which is somewhat unhandy when multiple developers are working on a project (ie., some on single-core laptops, some on quadcore workstations).

After googling: apparently /MP works in 2005 but was buggy. Iirc I used it without problems, though. For commandline builds, scons ftw, anyway.
- carpe noctem

Eóin

  • O'Callaghan
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,401
I must look into scons again. For commandline builds I tried out Boost.Build for a long while but lost faith when it started leaving some build targets out of date.
Interviewer: Is there anything you don't like?
Bjarne Stroustrup: Marketing hype as a substitute for technical argument. Thoughtless adherence to dogma. Pride in ignorance.

Original address: https://www.donationcoder.com/forum/index.php?topic=13893.0