如何在Visual Studio IDE(2008)中打开多CPU / Core C ++编译? [英] How do I turn on multi-CPU/Core C++ compiles in the Visual Studio IDE (2008)?

查看:168
本文介绍了如何在Visual Studio IDE(2008)中打开多CPU / Core C ++编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Visual Studio 2008 C ++项目,支持在编译时使用多个CPU /内核。在VCPROJ文件中,我看到:

 < Tool 
Name =VCCLCompilerTool
AdditionalOptions = / MP
...

我找不到



我发现了大量的引用


I have a Visual Studio 2008 C++ project that has support for using multiple CPUs/cores when compiling. In the VCPROJ file I see this:

<Tool
    Name="VCCLCompilerTool"
    AdditionalOptions="/MP"
    ...

I can't find where that was turned added via the IDE and I want to set up another project that uses all of my cores during compilation.

I found tons of references to the MSDN /MP page but that is for using the command line; I have yet to find any references to setting that with the IDE. How do I do that?

EDIT: To clarify, the two projects are completely separate and are not in the same VCPROJ file. I wanted to turn on support for multiple cores during the C++ compilation phase.

解决方案

To enable /MP option you could add it to Project Settings->C/C++->Command Line|Additional options. This is the only way to switch it on in vcproj.

这篇关于如何在Visual Studio IDE(2008)中打开多CPU / Core C ++编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆