How do I turn on multi-CPU/Core C++ compiles in the Visual Studio IDE (2008)?(如何在 Visual Studio IDE (2008) 中打开多 CPU/核心 C++ 编译?)
问题描述
我有一个 Visual Studio 2008 C++ 项目,它支持在编译时使用多个 CPU/内核.在 VCPROJ 文件中,我看到:
<工具名称="VCCLCompilerTool"附加选项=/MP"...我找不到通过 IDE 添加的位置,我想设置另一个在编译期间使用我所有内核的项目.
我发现对
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/核心 C++ 编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 Visual Studio IDE (2008) 中打开多 CPU/核心 C++ 编译?
基础教程推荐
- 为什么我们不能使用“虚拟继承"?在 COM 中? 2022-01-01
- 如何部分禁用 cmake C/C++ 自定义编译器检查 2021-01-01
- C++:获取传递给函数的多维数组的行大小 2021-01-01
- 与 CAS 的原子交换(使用 gcc 同步内置函数) 2022-01-01
- c++ STL设置差异 2022-01-01
- 随机插入/删除的综合向量与链表基准 2022-01-01
- 提升 ASIO 流缓冲 2021-01-01
- 如何更改 SysDateTimePick32 或 CDateTimeCtrl 的背景颜色? 2022-01-01
- 将不可复制的闭包对象传递给 std::function 参数 2021-01-01
- 如何在 C++ 中正确使用命名空间? 2022-01-01
