Re: [R] Building with MKL on Ubuntu

From: Ei-ji Nakama <nakama_at_ki.rim.or.jp>
Date: Thu, 06 Nov 2008 11:01:55 +0900

Hi

If you want to use MKL10(no 8 or 9), you should obey instructions of R-admin. MKL10 needs openmp. This needs gcc4.2 or later. OpenMP for Intel was necessary with MKL10.0.1.x (There was not it in a manual of MKL).
# Please try an additional effect of "-liomp5" in the %*%

# fp-model of Linux of IA32 is 387(80bit) about the precision,
# but SSE2(64bit) is a default in Intel64.
# It is caused by this that results are different.

There was not the problem in R-2.8.0 either   MKL_LIB_PATH=/opt/intel/mkl/10.0.5.025/lib/em64t

  MKL="   -L${MKL_LIB_PATH}                               \
             -Wl,--start-group                               \
                     ${MKL_LIB_PATH}/libmkl_gf_lp64.a        \
                     ${MKL_LIB_PATH}/libmkl_gnu_thread.a     \
                     ${MKL_LIB_PATH}/libmkl_core.a           \
             -Wl,--end-group                                 \
             -liomp5 -lguide -lpthread -lgomp"
  ./configure --with-lapack="$MKL" --with-blas="$MKL"

2008/11/5 Anand Patil <anand.prabhakar.patil_at_gmail.com>:
> 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.
>
>
>

-- 
EI-JI Nakama  <nakama (a) ki.rim.or.jp>
"\u4e2d\u9593\u6804\u6cbb"  <nakama (a) ki.rim.or.jp>

______________________________________________
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.
Received on Thu 06 Nov 2008 - 02:05:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Nov 2008 - 02:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive