Hi all,

Since I have asked a question about linking to intel mkl blas
libraries in the past, and the question popped up again I want to post
what I have recently had some success with.

Following Natarajan's advice, I used the configuration command:
./configure --enable-shared --with-blas="mkl_intel_lp64
-Wl,--start-group -lmkl_intel_thread -lmkl_core -Wl,--end-group
-lguide -lpthread"
LDFLAGS="-L/usr/local/intel/mkl/10.1.1.019/lib/em64t"

The LDFLAGS points to the directory where libmkl_intel_lp64.so,
libmkl_intel_thread.so and libmkl_intel_core.so are on the cluster I
am using. The cluster I am using sets up environment variables by
using "module load ..." commands. I have loaded intel/10.1.012 and
intel/mkl/10.1.1.019 (for the record). Since the environment variables
that it has set up for me are probably important I will try and list
all that seem relevant:
LD_LIBRARY_PATH
/usr/local/intel/mkl/10.1.1.019/lib/64:/usr/local/intel/cc/10.1.012/lib:/usr/local/intel/fc/10.1.012/lib:/opt/sgi/mpt/mpt-1.25/lib
LIBRARY_PATH
/usr/local/intel/mkl/10.1.1.019/lib/64:/opt/sgi/mpt/mpt-1.25/lib

Using these settings deal.II successfully configured (I paste the
section of config.log where daxpy_ is tested below in case it is of
use to anyone in the future). Since I am just starting on this cluster
and it is heavily used I will submit the deal.II compile to the job
queue hence can only say that it configures okay for the moment. If I
do not make another post with a correction assume it built okay too!

Hope that this will help someone and thanks to Natarajan for the
--with-blas command.

Regards,
Michael


configure:13947: checking for daxpy_ in -lmkl_intel_lp64
-Wl,--start-group -lmkl_intel_thread -lmkl_core -Wl,--end-group
-lguide -lpthread
configure:13982: /usr/local/intel/cc/10.1.012/bin/icpc  -o conftest
-DHAVE_ISNAN -g  -DBOOST_NO_HASH -DBOOST_NO_SLIST -DDEBUG -w1 -wd175
-wd525 -wd327 -wd424 -wd11 -wd734 -wd858 -wd1572
-I/home/tara/lib/deal.II-smp/contrib/boost/include
-Wl,-rpath,/home/tara/lib/deal.II-smp/lib
-L/usr/local/intel/mkl/10.1.1.019/lib/em64t -lstdc++ -lpthread
-lpthread -ldl -rdynamic conftest.cpp -lmkl_intel_lp64
-Wl,--start-group -lmkl_intel_thread -lmkl_core -Wl,--end-group
-lguide -lpthread  -lgfortran  >&5
ld: skipping incompatible
/usr/local/intel/mkl/10.1.1.019/lib/em64t/libmkl_intel_lp64.so when
searching for -lmkl_intel_lp64
ld: skipping incompatible
/usr/local/intel/mkl/10.1.1.019/lib/em64t/libmkl_intel_lp64.a when
searching for -lmkl_intel_lp64
ld: skipping incompatible
/usr/local/intel/mkl/10.1.1.019/lib/em64t/libmkl_intel_thread.so when
searching for -lmkl_intel_thread
ld: skipping incompatible
/usr/local/intel/mkl/10.1.1.019/lib/em64t/libmkl_intel_thread.a when
searching for -lmkl_intel_thread
ld: skipping incompatible
/usr/local/intel/mkl/10.1.1.019/lib/em64t/libmkl_core.so when
searching for -lmkl_core
ld: skipping incompatible
/usr/local/intel/mkl/10.1.1.019/lib/em64t/libmkl_core.a when searching
for -lmkl_core
ld: skipping incompatible
/usr/local/intel/mkl/10.1.1.019/lib/em64t/libguide.so when searching
for -lguide
ld: skipping incompatible
/usr/local/intel/mkl/10.1.1.019/lib/em64t/libguide.a when searching
for -lguide
configure:13988: $? = 0
configure:14007: result: yes
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to