【发布时间】:2016-02-22 15:12:53
【问题描述】:
目前我正在开发一个跨平台框架,我想在其中使用 openmp 的实际功能。 我想利用 openmp 3.0(或更高版本)的“新功能”。 (例如无符号并行循环或任务等, 我已经有一段时间没有在 Windows 平台上开发了 正如我现在所看到的,即使 Visual Studio 2015 也只支持 openmp 2.0(至少在使用 msvc 时,请参阅 All OpenMP Tasks running on the same thread 或 https://blogs.msdn.microsoft.com/vcblog/2014/11/12/visual-studio-2015-preview-is-now-available/)所以我的问题是:
- 是否有合理的理由不支持 Visual Studio 中的 openmp3.0? 有没有办法让它在 Visual Studio 下工作?
- 我知道,我可以使用英特尔 C++ 编译器,但不幸的是,我无法使用它。那么有没有支持 openmp3.0 的英特尔编译器的免费替代品?
提前致谢
【问题讨论】:
-
Here 你可以找到关于如何将 clang 3.7 包含到 MSVC 2015 更新 1 中的描述。我不知道 Open MP 是否与它一起运行,但 imo 的机会并没有那么糟糕。跨度>
-
哦,太棒了,谢谢我试试
-
@davidhigh 嗯?!页面右侧有一条声明
No OpenMP support. You will get a diagnostic that says “OpenMP is not supported” -
@SeverinPappadeux:好的。我还没有看到,可能是因为我对“MSVC 中的 C++1z”感到欣喜若狂。
标签: c++ visual-studio visual-studio-2015 openmp