From nakama at ki.rim.or.jp  Thu Nov  6 16:08:55 2008
From: nakama at ki.rim.or.jp (Ei-ji Nakama)
Date: Fri, 7 Nov 2008 00:08:55 +0900
Subject: [Rd] [R] Building with MKL on Ubuntu
In-Reply-To: <2bc7a5a50811060200h13f8140bpd026840216a12646@mail.gmail.com>
References: <2bc7a5a50811041000u698ccbdm252e2209735192f1@mail.gmail.com>
	<dc41e1260811051801x6cfd461av5a31596587beecb3@mail.gmail.com>
	<2bc7a5a50811060200h13f8140bpd026840216a12646@mail.gmail.com>
Message-ID: <dc41e1260811060708x1c9c41d6m29b67e71da484bba@mail.gmail.com>

Hi

2008/11/6 Anand Patil <anand.prabhakar.patil at gmail.com>:
> I tried that earlier, and it doesn't encounter the zdotu error (maybe it was
> fixed in 10.0.5?) but I got a different error:

no, see MKL manual.
Because fortran do not have compatibility, You appoint ABI of your
Fortran in a link of MKL.

> /opt/intel/fce/10.1.018/lib/libiomp5.so: undefined reference to
> `pthread_atfork'

MKL 10.0.1.x that libiomp5 was necessary.
Hmm, but not need libiomp5 with MKL 10.0.5.x.
I do not understand which version MKL were recovered in, but libiomp5
seems to be unnecessary in the latest edition.

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  -lgomp"
LDFLAGS="-L$MKL_LIB_PATH" ./configure --with-lapack="$MKL" --with-blas="$MKL"

-liomp5 -lguide -lpthread  You omit three library, and please link

Please check the result of the big %*% just to make sure.
-- 
EI-JI Nakama  <nakama (a) ki.rim.or.jp>
"\u4e2d\u9593\u6804\u6cbb"  <nakama (a) ki.rim.or.jp>



[Rd] [R] Building with MKL on Ubuntu
Ei-ji Nakama