openmp runs single threaded on my mac

后端 未结 1 786
孤城傲影
孤城傲影 2021-01-14 17:39

I am trying to parallelize a program using openmp on a Mac, but I can not manage to make it multi-threaded. I\'ve tried building llvm/clang/openmp 3.7.1 from source (after a

1条回答
  •  攒了一身酷
    2021-01-14 18:28

    clang < 3.8.0 requires -fopenmp=libomp to generate OpenMP code. clang >= 3.8.0 also supports -fopenmp (-fopenmp=libomp can be used also).

    0 讨论(0)
提交回复
热议问题