[R] Building with MKL on Ubuntu
plummer at iarc.fr
plummer at iarc.fr
Tue Nov 4 20:34:02 CET 2008
I can see a couple of problems:
1) No "-lpthread" in --with-blas
2) No "-L" prefix in the library path in --with-lapack
In addition, I don't think you need to add -lmkl to --with-lapack,
although that is probably harmless.
Martyn
Quoting Prof Brian Ripley <ripley at stats.ox.ac.uk>:
> Look in config.log to see what's wrong. (E.g. is
> /opt/intel/mkl/10.0.2.018/lib/em64t in the ld.so cache?)
>
> And note the warnings in the manual about using --with-lapack: it is most
> definitely not recommended.
>
> R-devel would be a better place to ask questions about this.
>
> On Tue, 4 Nov 2008, Anand Patil wrote:
>
> > Hi all,
> > I'm trying to build R from subversion with MKL 10.0.2 on Ubuntu. I tried:
> >
> > ./configure --with-blas='-L/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl
> > -lguide' --with-lapack='/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl
> > -lmkl_lapack' --enable-R-shlib
> >
> > and got:
> >
> > R is now configured for x86_64-unknown-linux-gnu
> >
> > Source directory: .
> > Installation directory: /usr/local
> >
> > C compiler: gcc -std=gnu99 -g -O2
> > Fortran 77 compiler: gfortran -g -O2
> >
> > C++ compiler: g++ -g -O2
> > Fortran 90/95 compiler: gfortran -g -O2
> > Obj-C compiler:
> >
> > Interfaces supported: X11
> > External libraries: readline
> > Additional capabilities: PNG, JPEG, iconv, MBCS, NLS, cairo
> > Options enabled: shared R library, shared BLAS, R profiling,
> > Java
> >
> > Recommended packages: yes
> >
> > but make then builds R's blas, and when I subsequently do linear algebra in
> > R it's obviously not multithreading. What am I doing wrong?
> >
> > Thanks,
> > Anand
> >
> > [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
> --
> Brian D. Ripley, ripley at stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
-----------------------------------------------------------------------
This message and its attachments are strictly confidenti...{{dropped:8}}
More information about the R-help
mailing list