Xcode 6中的OpenMP支持(clang 3.5) [英] OpenMP support in Xcode 6 (clang 3.5)
问题描述
xcode 6基于clang 3.5;
on osx 10.9.5运行 clang ++ --version
从命令行报告
xcode 6 is based on clang 3.5;
on osx 10.9.5 running clang++ --version
from the command line reports
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
所以我认为苹果包括openmp支持,因为在clang 3.5发行注释
so I supposed that Apple included openmp support given the fact that in the clang 3.5 release notes
http://llvm.org/releases/3.5.0/tools/clang/docs/ReleaseNotes.html
clang开发人员声明部分openmp支持。但是似乎-fopenmp参数仍然无法识别。
the clang developers claim partial openmp support. But it seems that the "-fopenmp" argument is still not recognized.
任何提示?
推荐答案
Clang仍然不完全支持OpenMP,实际上它只支持解析/ Sema分析+'omp parallel'和omp simd指令。您可以尝试通过添加-Xclang -fopenmp = libiomp5选项来激活它。
Clang still does not fully support OpenMP, actually it supports only Parsing/Sema analysis + some basic coidegen for 'omp parallel' and 'omp simd' directives. You can try to activate it by adding -Xclang -fopenmp=libiomp5 options.
这篇关于Xcode 6中的OpenMP支持(clang 3.5)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!