Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-05-02 Thread Simon Urbanek
JJB, good idea, I didn't think of it, I have now moved this one and the recipes repo to https://github.com/R-macos Cheers, Simon > On 2/05/2020, at 4:32 AM, Balamuta, James Joseph > wrote: > > Simon, > > Thank you for the official instructions on using OpenMP with R 4.0.0! > > Also, than

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-05-01 Thread Manuel Spínola
That will be a great idea. I don’t know much of programming and I get confused with so many technical details. Manuel Spínola On Fri, May 1, 2020 at 10:32 Balamuta, James Joseph wrote: > Simon, > > Thank you for the official instructions on using OpenMP with R 4.0.0! > > Also, thanks for making

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-05-01 Thread Balamuta, James Joseph
Simon, Thank you for the official instructions on using OpenMP with R 4.0.0! Also, thanks for making the source behind mac.r-project.org available on GitHub! https://github.com/s-u/R-mac-dev Would you consider creating an organization to house all repositories related to R for macOS in a mann

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-04-30 Thread Dmitriy Selivanov
Thank you Simon for the official instruction and explanation about caveats! I've tried to use libomp (9.0.1) you've provided and everything works smoothly. With new R4.0 toolchain and optional openmp support we got really good tradeoff between simplicity for the majority of the users and feature-ri

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-04-30 Thread Simon Urbanek
I have now created a page about this: http://mac.r-project.org/openmp which also provides libomp binaries for all recent versions of Xcode (and more). Important note: this is about Xcode - it is NOT about using Homebrew tools nor the custom compilers we used before R 4.0.0. Both of the latter a

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-04-30 Thread Wright, Erik Scott
Hi Kevin et al., The setup you suggested did not work for me, but I was able to get OpenMP to work on Mac (10.13) with R v4.0 packages. Here's what I did: (1) After installing Homebrew, ran brew install libomp # Note it is also possible to install from OpenMP Source code: https://releases.llvm

[R-SIG-Mac] openmp

2020-04-29 Thread Erich Neuwirth
Since we do not have openmp support in R 4.0 is there (or can I easily produce) a list of packages which either depend on openmp or make use of openmp to improve performance? Erich signature.asc Description: Message signed with OpenPGP ___ R-SIG-Mac m

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-04-28 Thread Dmitriy Selivanov
Thanks, Kevin, I can confirm suggested setup works fine so far. Thank you! I understand it, is that there's > no guarantee that this will work properly (or continue to work > properly) as the Apple toolchain continues to be updated -- e.g. a new > version of macOS / Xcode could install a version o

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-04-25 Thread Kevin Ushey
The following works for me on macOS 10.15.4 using Apple Clang + libomp from LLVM 10 (via Homebrew). Install libomp from Homebrew with: brew install libomp Then, put the following in ~/.R/Makevars CPPFLAGS += -I/usr/local/opt/libomp/include -Xclang -fopenmp LDFLAGS += -L/usr/local/op

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-04-25 Thread Wright, Erik Scott
I second this request. Dropping OpenMP support in R v4.0 on Mac is unfortunate. My R package is highly parallelized via OpenMP, and many of my end-users take advantage of the excellent speedups. It would be much appreciated if user-level instructions could be provided for how to enable OpenM

Re: [R-SIG-Mac] OpenMP on CRAN (Simon Urbanek)

2020-04-23 Thread Dmitriy Selivanov
Hi Simon, Just wanted follow up on this topic. It would be very helpful if you can provide some guide on https://mac.R-project.org for those users (advanced?) and developers who wants to be able to use OpenMP on mac. From what I've understood from this mail thread the

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-04 Thread Patrick Schratz
Simon, thanks. While this feels like a somewhat 1/1 discussion now, I also think that others might profit from it. 1. I am aware that LLVM is a wrapper bundling more than just the compiler and that it comes with its own copy of clang 2. I don’t use homebrew because it does not easily allow mult

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-03 Thread Simon Urbanek
Patrick, > On 4/04/2020, at 1:33 AM, Patrick Schratz wrote: > > Simon, > > thanks. I assume that you mean “clang from homebrew” = llvm (from homebrew)? LLVM is the compiler infrastructure project, clang is the C/C++ compiler from that project. We don't use any of the other compilers form LLV

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-03 Thread Patrick Schratz
Simon, thanks. I assume that you mean “clang from homebrew” = llvm (from homebrew)? Indeed I am currently trying that out and it looks really robust for source installations (more than the systems clang (+ eventual openMP flags like suggested by Kevin) and other variants (gcc from homebrew or op

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-03 Thread Simon Urbanek
Patrick, you were commenting on the thread where we talked about CRAN R - that one is now compiled using Apple clang. You were talking about using clang from Homebrew - those are incompatible as they use different run-time. Unfortunately, the Intel OpenMP run-time varies by clang compiler versi

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-03 Thread Patrick Schratz
Simon, I don’t understand fully. I am using llvm for all C variants (just now shown) in combination with the 10.13 SDK. So far this combination works flawlessly for all “problematic” packages like data.table, igraph or Rcpp. I don’t have deeper knowledge about the “iomp” setup but as of right n

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-02 Thread Simon Urbanek
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 ha

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-02 Thread Patrick Schratz
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

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-02 Thread Simon Urbanek
Tim, > On 3/04/2020, at 2:01 AM, BATES Timothy wrote: > > Moving to a compiler that drops support for OpenMP seems a sad choice, > especially now we’ve all climbed the learning curve of the non-Apple compiler > (the real barrier was lack of a pkg installer and that’s done now). > It has cau

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-02 Thread Balamuta, James Joseph
Kevin, Simon discussed why they opted to avoid this back in June '19 when Jon Clayden brought up a similar success. https://stat.ethz.ch/pipermail/r-sig-mac/2019-June/012998.html The sentiment was using the system compiler is in manner is unsupported and works only on some systems. I'm not sur

Re: [R-SIG-Mac] OpenMP on CRAN

2020-04-02 Thread Kevin Ushey
Hi, For what it's worth, it looks like it is still possible to use OpenMP on macOS with the system toolchain. Using the example file here: https://computing.llnl.gov/tutorials/openMP/samples/C/omp_hello.c I can compile + link + run this on macOS 10.15.4 and with: $ /usr/bin/clang -Xpreprocessor

[R-SIG-Mac] OpenMP on CRAN

2020-04-02 Thread BATES Timothy
Moving to a compiler that drops support for OpenMP seems a sad choice, especially now we’ve all climbed the learning curve of the non-Apple compiler (the real barrier was lack of a pkg installer and that’s done now). Losing OpenMP for the CRAN version of OpenMx/umx (our SEM packages) would be a

Re: [R-SIG-Mac] OpenMP in R 2.13.1

2011-09-30 Thread Simon Urbanek
Michael, On Sep 30, 2011, at 4:04 PM, Michael Spiegel wrote: > I apologize for cross-posting from R-SIG-hpc, but I realized this > group is likely to have more mac users than the other group. Can > someone with a Mac go ahead and check in > /Library/Frameworks/R.framework/Resources/etc/x86_64/Mak

[R-SIG-Mac] OpenMP in R 2.13.1

2011-09-30 Thread Michael Spiegel
I apologize for cross-posting from R-SIG-hpc, but I realized this group is likely to have more mac users than the other group. Can someone with a Mac go ahead and check in /Library/Frameworks/R.framework/Resources/etc/x86_64/Makeconf and confirm that the value for SHLIB_OPENMP_CFLAGS is empty when