-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RcppArmadillo 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 clang
returns an Apple identifier.RcppArmadillo/configure.ac
Line 74 in 284d318
Though, that should be verified on an
r-devel
build of macOS.The text was updated successfully, but these errors were encountered: