Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRcppArmadillo with macOS and OpenMP In a Post R 4.0.0 World #290
Comments
|
Any update / closure / recommendation for the docs regarding the macOS setup ? |
|
Yes, we do have an update! OpenMP can be re-enabled by grabbing However, macOS users will never be able to use it with RcppArmadillo because even with re-compiling We'd need to do some further tinkering with detection in |
|
Yes, thanks I think I saw one post on that (maybe I was tagged). So good to have that. And agree that tinkering with |
|
I can make one suggestion: I proposed this for and the PR has been accepted but not yet merged. I'd be willing to contribute something similar for RcppArmadillo if there is interest. |
|
That's good. Doing an actual build is better than just (globally) inferring from platforms defaults. Especially on a platform as, how do I say this charitably?, "challenging" as you're preferred one. The only other counter-argument would be to to maybe trust the R default configuration. But I could also see that a user may override after the fact for package builds... |
|
So What I am wondering is where to do it. Just the macOS case? We are doing fine otherwise 'trusting' R to hand us |
From Simon:
Source: https://stat.ethz.ch/pipermail/r-sig-mac/2020-April/013289.html
This means that macOS is no longer supporting a compiler compatible with OpenMP by default. So, custom compilations of RcppArmadillo will be required to enable OpenMP. I don't think that RcppArmadillo will be affected by this change as it already disables OpenMP when
which clangreturns an Apple identifier.RcppArmadillo/configure.ac
Line 74 in 284d318
Though, that should be verified on an
r-develbuild of macOS.