I want to build R optimized, with either MKL, OpenBLAS or ATLAS. My OS: Fedora 22 Hardware: CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8 Thread(s) per core: 2 Vendor ID: GenuineIntel Model name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz I am a little confused when it comes to choose a method and would like to hear your experiences. If I am right, I have 3 possibilities: - OpenBLAS: opensource and free, but I came across some posts describing seg faults issues and bugs. These posts are 2 years old and I wonder if it is still the case. - ATLAS: can't see any reason to not use it - Intel MKL: this is part of Intel Parallel Studio and is a paid software. Now, there is the MKL package distributed by Revolutionanalytics, but I am not certain how this can be distributed for free. Is there any kind of difference? In case of use of this package, do I need to install RRO or can I just build R from GNU against these libraries? Thank you for advices. -- google.com/+arnaudgabourygabx
arnaud gaboury <arnaud.gaboury at gmail.com> writes:> - Intel MKL: this is part of Intel Parallel Studio and is a paid > software. Now, there is the MKL package distributed by > Revolutionanalytics, but I am not certain how this can be distributed > for free. Is there any kind of difference? In case of use of this > package, do I need to install RRO or can I just build R from GNU > against these libraries?We regularly build the standard R against MKL, simply using ./configure --with-blas='-mkl=parallel' --with-lapack --enable-BLAS-shlib (The --enable-BLAS-shlib is not strictly needed for building agains MKL.) We also try to optimise the build by setting some environment variables before running configure: fast="-ip -O3 -opt-mem-layout-trans=3 -xHost -mavx" export CC="icc" export CFLAGS="$fast -wd188 -fp-model precise" export F77="ifort" export FFLAGS="$fast -fp-model precise" export CXX="icpc" export CXXFLAGS="$fast -fp-model precise" export FC="ifort" export FCFLAGS="$fast -fp-model precise" -- Regards, Bj?rn-Helge Mevik
On Mon, Aug 24, 2015 at 11:29 AM, Bj?rn-Helge Mevik <b.h.mevik at usit.uio.no> wrote:> arnaud gaboury <arnaud.gaboury at gmail.com> writes: > >> - Intel MKL: this is part of Intel Parallel Studio and is a paid >> software. Now, there is the MKL package distributed by >> Revolutionanalytics, but I am not certain how this can be distributed >> for free. Is there any kind of difference? In case of use of this >> package, do I need to install RRO or can I just build R from GNU >> against these libraries? > > We regularly build the standard R against MKL, simply usingDo you use proprietary Intel MKL or open source package like OpenBLAS ?> > ./configure --with-blas='-mkl=parallel' --with-lapack --enable-BLAS-shlib > > (The --enable-BLAS-shlib is not strictly needed for building agains MKL.) > > > We also try to optimise the build by setting some environment variables > before running configure: > > fast="-ip -O3 -opt-mem-layout-trans=3 -xHost -mavx" > export CC="icc" > export CFLAGS="$fast -wd188 -fp-model precise" > export F77="ifort" > export FFLAGS="$fast -fp-model precise" > export CXX="icpc" > export CXXFLAGS="$fast -fp-model precise" > export FC="ifort" > export FCFLAGS="$fast -fp-model precise" > > -- > Regards, > Bj?rn-Helge Mevik > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel-- google.com/+arnaudgabourygabx