Re: [R-SIG-Mac] Building R 4.0.2 from source via clang/xcode for MKL on macOS

2020-10-02 Thread Jeroen Ooms
On Tue, Sep 29, 2020 at 4:32 PM Prof Brian Ripley wrote: > > On 29/09/2020 12:27, Kasper Daniel Hansen wrote: > > To use veclib you need > > --with-blas="-framework Accelerate" > > Details are in the R-admin manual, including that R fails one of its checks. It may be worth mentioning that pyt

Re: [R-SIG-Mac] Building R 4.0.2 from source via clang/xcode for MKL on macOS

2020-09-30 Thread roy
Thanks to all for the info and to Kasper for the complete options in building R on macos. Using xcode clang/blas, I successfully built R 4.0.2 with the accelerate framework (or vecLib). I did some initial performance tests using the scripts from https://blog.revolutionanalytics.com/2014/10/revol

Re: [R-SIG-Mac] Building R 4.0.2 from source via clang/xcode for MKL on macOS

2020-09-29 Thread Simon Urbanek
> On Sep 30, 2020, at 03:32, Prof Brian Ripley wrote: > > On 29/09/2020 12:27, Kasper Daniel Hansen wrote: >> To use veclib you need >>--with-blas="-framework Accelerate" > > Details are in the R-admin manual, including that R fails one of its checks. > > Simon's calling this vecLib is a

Re: [R-SIG-Mac] Building R 4.0.2 from source via clang/xcode for MKL on macOS

2020-09-29 Thread Prof Brian Ripley
On 29/09/2020 12:27, Kasper Daniel Hansen wrote: To use veclib you need --with-blas="-framework Accelerate" Details are in the R-admin manual, including that R fails one of its checks. Simon's calling this vecLib is a bit misleading. 'vecLib' was a vectorized library for PPC Macs, and th

Re: [R-SIG-Mac] Building R 4.0.2 from source via clang/xcode for MKL on macOS

2020-09-29 Thread Kasper Daniel Hansen
To use veclib you need --with-blas="-framework Accelerate" My full building script on OS X is currently ../${SRCDIR}/configure SHELL='/bin/bash' \ --prefix=/usr/local/R/${R_VERSION} --disable-R-framework\ CC="/usr/local/clang8/bin/clang" \ CXX="/usr/local/clang8/bin/clang++" \ F77="/us

Re: [R-SIG-Mac] Building R 4.0.2 from source via clang/xcode for MKL on macOS

2020-09-29 Thread Kasper Daniel Hansen
In my understanding, almost all of the speed up comes from using an optimized BLAS. Optimizing LAPACK tend to have negligible impact on performance. At least that is my impression, although I won't say I'm an expert. Best, Kasper On Tue, Sep 29, 2020 at 9:53 AM roy wrote: > Hi Simon, > Thanks f

Re: [R-SIG-Mac] Building R 4.0.2 from source via clang/xcode for MKL on macOS

2020-09-29 Thread roy
Hi Simon, Thanks for the info. I was totally unaware of ABI, vecLib, etc and that Apple has blas, lapack, etc. But after reading up on this and re-reading your email, I'm beginning to understand more about this. So, I would like to first checkout vecLib. From what you say, would I have to do so

Re: [R-SIG-Mac] Building R 4.0.2 from source via clang/xcode for MKL on macOS

2020-09-28 Thread Simon Urbanek
Rollin, it has been several years since I last tested MKL, so take it with a grain of salt, but in general you don't necessarily have to build R with MKL in order to use it - you only need to use --enable-BLAS-shlib and link to any ABI-compatible BLAS which can be vecLib as well. Then you can c