OpenMP support in Xcode 6 (clang 3.5)

喜夏-厌秋 提交于 2019-12-17 20:25:23

问题


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:


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.



来源:https://stackoverflow.com/questions/26159225/openmp-support-in-xcode-6-clang-3-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!