Skip to content

OpenMP on CRAN

2 messages · Patrick Schratz, Simon Urbanek

#
Thanks Kevin, interesting approach.

However, when testing it against a few packages I get symbol pointer issues (e.g. for data.table and xgboost).
Using llvm everything works.
Could llvm be the best middle way? Easy installation via brew and still clang compliant.

Currently my Makevars look as follows

CFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk
[?]

CC = ccache /usr/local/opt/llvm/bin/clang
[?]

Where llvm was installed via `brew install llvm`.
SDK 10.13 because of {igraph} and {Rcpp} issues with SDK 10.14 and SDK 10.15
On 2. Apr 2020, 23:01 +0200, Simon Urbanek <simon.urbanek at r-project.org>, wrote:

  
  
#
Patrick,

you can't mix compilers - it really matters which iomp your'e using. llvm has its own modified version which may not be the same as the official Intel release. From your tests it looks like you're using the llvm one which will likely work only with that compiler. Since Apple doesn't have official omp support it's hard to say which versions work and which don't.
I mentioned that before, but I do not see issues with 10.14 SDK.

Cheers,
Simon