试图在mac上安装openMP / Clang

时间:2013-12-27 19:58:51

标签: macos clang openmp

我在mac(10.9.1)上安装openMP时遇到问题。

我要遵循的安装说明如下:http://clang-omp.github.io/

我按照以下方向的说明完成了openMP支持:http://clang.llvm.org/get_started.html

在这些步骤之后,

我的构建文件位于此目录下 /用户/米切尔/桌面/ PriceWithDocsAndSampleJob130506 /构建

现在我想使用这个新安装的编译器,我试图使用这些命令将它添加到我的路径中:

$ export PATH=/install/prefix/bin:$PATH
$ export C_INCLUDE_PATH=/install/prefix/include:/Users/Mitchell/Desktop/PriceWithDocsAndSampleJob130506/build/include:$C_INCLUDE_PATH
$ export CPLUS_INCLUDE_PATH=/install/prefix/include:/Users/Mitchell/Desktop/PriceWithDocsAndSampleJob130506/build/include:$CPLUS_INCLUDE_PATH
$ export LIBRARY_PATH=/install/prefix/lib:/Users/Mitchell/Desktop/PriceWithDocsAndSampleJob130506/build/lib:$LIBRARY_PATH
$ export DYLD_LIBRARY_PATH=/install/prefix/lib:/Users/Mitchell/Desktop/PriceWithDocsAndSampleJob130506/build/lib:$DYLD_LIBRARY_PATH

但是当我尝试使用-fopenmp编译文件时,我得到了例如:

g++ -fopenmp -O -c ParamsCycleManagement.cpp -o ParamsCycleManagement.o
clang: warning: argument unused during compilation: '-fopenmp'
In file included from ParamsCycleManagement.cpp:22:
In file included from ./ParamsCycleManagement.h:33:
In file included from ./ExtendCycle.h:26:
In file included from ./ReadPairFilter.h:36:
./ScoredSeqCollectionBwt.h:31:10: fatal error: 'omp.h' file not found

我是否错误地将其添加到我的路径中或者做了其他错误的操作?谢谢你的帮助。

1 个答案:

答案 0 :(得分:3)

使用clang ++作为编译器名称。 g ++调用clang编译器的默认副本,没有OpenMP支持。