Is OpenMP available in High Sierra LLVM?

后端 未结 2 1637
故里飘歌
故里飘歌 2020-12-01 13:15

In the default LLVM provided by Apple in macOS 10.13, High Sierra, is OpenMP finally available? It has been available in main LLVM for more than a year now.

(another

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-01 13:58

    No, it is not (officially). The Apple LLVM is roughly based on 4.0, but the OpenMP module is left out. You can even see a remaining OpenMP option in the help to set offloading targets, but it does not support OpenMP.

    $ clang++ --help | grep openmp
      -fopenmp-targets=
    

    Apple, adding OpenMP would be a huge boon to science researchers!

    Note: Brew has support for building the OpenMP library! Use:

    brew install libomp
    

    A patch has been accepted into CMake that will allow users to get the correct compile and linking line OpenMP in CMake 3.12 if they use the targets system.

提交回复
热议问题