OpenMP support in Xcode 6 (clang 3.5)

2019-01-20 00:19发布

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)

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

the clang developers claim partial openmp support. But it seems that the "-fopenmp" argument is still not recognized.

Any hints?

1条回答
何必那么认真
2楼-- · 2019-01-20 01:06

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.

查看更多
登录 后发表回答