4

Here it says that clang supports OpenMP since a few months: http://blog.llvm.org/2015/05/openmp-support_22.html

Thus I installed clang-3.7 @3.7-r239386 on Mac OS X with Macports, which should correspond to the dev version of clang.

But it looks like it doesn't support OpenMP:

$ port contents clang-3.7 | grep omp.h  # nothing found

Does someone know why that clang doesn't support OpenMP and if it will soon?

Christoph
  • 2,790
  • 2
  • 18
  • 23

2 Answers2

2

There is a libomp port now. See the notes (port notes libomp) for usage requirements.

eborisch
  • 646
  • 5
  • 3
1

Yes, you will also need to install the openmp library and use the compiler as instructed in the blog you linked.

Jeremy Huddleston Sequoia
  • 22,938
  • 5
  • 78
  • 86
  • Can the OpenMP library be installed via Macports? If no, is it worth filing a feature request for this in the Macports issue tracker? Or is this impossible for some legal or technical reason? – Christoph Jun 29 '15 at 06:47
  • There is currently no port available. You would need to build it yourself (should be rather easy). If you want to throw together a Portfile to build it, please do file a ticket with the Portfile attached to request it be added to the repo. – Jeremy Huddleston Sequoia Jun 29 '15 at 08:34
  • I don't have the time or skills to put this Portfile together. I've marked your answer as accepted, although it would be more clear if you explicitly said that the openmp library can't be installed via Macports at this point in time. Thanks, Jeremy! – Christoph Jun 29 '15 at 09:02
  • How has this matter progressed over the last 5 years? – Victor Eijkhout Jan 04 '20 at 11:44