openMP

Hi, I'd like to use OpenMP (and potentially, OpenACC) in my program, but they seem to be not supported by LLVM. For a couple of other reasons I've changed my defaulf compiler to GCC 4.9, which does support OpenMP. To do that I used a custom plugin file.

The use of GCC on xCode 6.1 is itself a pain, but the convenience user friendliness of xCode overwhelms it.

So, my question is if there is a was I can use OpenMP with xCode having GCC 4.9 as compiler.

Replies

OpenMP is being integrated into clang/LLVM, but I don't know what the shipping status of that code is, especially for Apple's versions of clang/LLVM. You can check Clang's dev mailing list for relevant posts: http://lists.cs.uiuc.edu/pipermail/cfe-dev/

It seems that Apple had OpenMP support in their earlier Xcode releases, but it is not present in Xcode-8.0 any more.


Anybody from Apple, could you comment?

I rather doubt we will ever see the llvm.org OpenMP support in Apple's shipping compilers as they would have no interest in encouraging folks using anything other than blocks or OpenCL.

The OpenMP support you refer to was the libgomp support from the Apple gcc-4.2 and llvm-gcc compilers. The legacy libgomp is certain to disappear whenever Apple finally deprecates libstdc++ fully out of the OS.

I see, thanks! But their OpenCL support is also broken - see https://forums.developer.apple.com/message/180631#180631


Any idea what could be wrong there...?