gpt4 book ai didi

c++ - 用于 Visual Studio 的 OpenMP 3.0

转载 作者:搜寻专家 更新时间:2023-10-31 02:17:40 25 4
gpt4 key购买 nike

目前我正在开发一个跨平台框架,我想在其中使用 openmp 的实际功能。我想利用 openmp 3.0(或更高版本)的“新功能”。(例如无符号并行循环或任务等,我已经有一段时间没有在 Windows 平台上开发了正如我目前所见,即使 Visual Studio 2015 也只支持 openmp 2.0(至少在使用 msvc 时,请参见例如 All OpenMP Tasks running on the same threadhttps://blogs.msdn.microsoft.com/vcblog/2014/11/12/visual-studio-2015-preview-is-now-available/)所以我的问题是:

  1. 在 Visual Studio 中不支持 openmp3.0 有什么合理的理由吗?有什么办法让它在 Visual Studio 下工作吗?
  2. 我知道,我可以使用英特尔 C++ 编译器,但遗憾的是我没有权限使用。那么是否有支持 openmp3.0 的英特尔编译器的免费替代品?

提前致谢

最佳答案

好吧,您可以尝试适用于 Windows、原生 (mingw64) 和基于 cygwin 的 GCC 端口。

尝试安装msys2你将获得 ming64 以及支持 OpenMP 的 cygwin 编译器

关于c++ - 用于 Visual Studio 的 OpenMP 3.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35557175/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com