JeGX HackLAB


[English]Multithreaded Build with Visual Studio 2005[/English][French]Build Multithreadé avec Visual Studio 2005[/French]

with 3 comments




[English]
Under Visual Studio 2005 (VC8), you can enable the multithreaded build of projects. This great feature makes it possible to use several CPUs to build your projects. This is a per-project setting and it’s done in command line: /MPx where x is the number of cores you want to use. Example: /MP2 to use 2 CPUs if you have (like me) a core2duo.

I’ve done some tests with Demoniak3D:
- Demoniak3D (default): Build Time 0:33
- Demoniak3D (/MP2): Build Time 0:15

Great boost in productivity of large projects!
[/English]

[French]
Sous Visual Studio 2005 (VC8) vous pouvez activer le build multithreadé des projets. Cette super fonctionnalité permet d’utiliser plusieurs CPUs pour builder vos projets. C’est un régalge par projet en ligne de commande: /MPx où x est le nombres de cores que vous voulez utiliser. Exemple: /MP2 pour utiliser 2 CPUs si vous avez (comme moi) un core2duo.

J’ai fait quelques tests avec Demoniak3D:
- Demoniak3D (default): Build Time 0:33
- Demoniak3D (/MP2): Build Time 0:15

Gros boost de productivité surtout pour les gros projets!
[/French]
[-source-]










2,068 views

Written by JeGX

July 10th, 2008 at 1:49 pm

3 Responses to '[English]Multithreaded Build with Visual Studio 2005[/English][French]Build Multithreadé avec Visual Studio 2005[/French]'

Subscribe to comments with RSS or TrackBack to '[English]Multithreaded Build with Visual Studio 2005[/English][French]Build Multithreadé avec Visual Studio 2005[/French]'.

  1. You can also specify only /MP without number and VS will use all cores you have.

    This setting btw also works for VS2005. Even for Express edition.

    bubu

    10 Jul 08 at 3:08 pm

  2. Thanks for this information ;)

    JeGX

    10 Jul 08 at 3:32 pm

  3. Il faut désactiver la fonction “Activation de la régénération minimal” (/Gm) sinon /MP sera désactivé et vous aurez cette erreur :

    Ligne de commande warning D9030 : ‘/Gm’ incompatible avec le multitraitement ; commutateur /MP ignoré

    Naskel

    14 May 11 at 7:00 pm

Leave a Reply