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
On 24 August 2015 at 11:43, arnaud gaboury wrote: | 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 using | | Do you use proprietary Intel MKL or open source package like OpenBLAS ? You may be able to switch at will _after_ R has been built and installed. That is something people simply cannot get their head around but lapack and blas are an INTERFACE for which several implementations provide suitable code. That is the gist behind the package gcbd -- which is really a container for a paper / vignette where I use(d) the fact that on a Debian-based system I do have access to several of these (including the MKL) so that I can even script benchmark runs for comparison _from R_ as it is just a (system) package removal / installation which can be automated. The paper never got finished as the gpu/cpu comparison aspect confuses matters further --- but the basic idea is solid: you can still switch later, so benchmarking is possibly. And desirable as these question pop up all the time. For Debian/Ubuntu, I ensure we built using --with-blas --with-lapack and after that you just swap the system libraries providing them. You should only need rebuilds of R if your system fails to make these swappable. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
On Mon, Aug 24, 2015 at 1:42 PM, Dirk Eddelbuettel <edd at debian.org> wrote:> > On 24 August 2015 at 11:43, arnaud gaboury wrote: > | 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 using > | > | Do you use proprietary Intel MKL or open source package like OpenBLAS ? > > You may be able to switch at will _after_ R has been built and installed.something like: # update-alternatives --config .... ? Reference to this blog[0]>[0]http://blog.nguyenvq.com/blog/2014/11/10/optimized-r-and-python-standard-blas-vs-atlas-vs-openblas-vs-mkl/ -- google.com/+arnaudgabourygabx
arnaud gaboury <arnaud.gaboury at gmail.com> writes:> On Mon, Aug 24, 2015 at 11:29 AM, Bj?rn-Helge Mevik > >> We regularly build the standard R against MKL, simply using > > Do you use proprietary Intel MKL or open source package like OpenBLAS ?As I wrote: MKL. -- Regards, Bj?rn-Helge Mevik