MKL and openMP

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? Problems in GPU architectures? This is the place to look.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani

Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
Post Reply
javad
Posts: 44
Joined: Fri Feb 28, 2014 10:23 pm

MKL and openMP

Post by javad » Tue Jun 23, 2015 1:58 pm

Dear developers

may I compile yambo with the openMP version of the MKL libraries? does the code use it?

-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core

or should I use the serial version?

-lmkl_intel_lp64 -lmkl_sequential -lmkl_core

with best regards
Javad
Javad Exirifard
IPM - Institute for Research in Fundamental Sciences
P. O. Box 19395-5746
Niavaran Square
Tehran, Iran

andrea.ferretti
Posts: 214
Joined: Fri Jan 31, 2014 11:13 am

Re: MKL and openMP

Post by andrea.ferretti » Tue Jun 23, 2015 2:04 pm

Hi Javad,

this is a good point!
Ideally yes, especially if you do not use the explicit OpenMp implementation of yambo (ie. if you just rely on the implicit parallelisation of optimised libs such as MKL).
On the other hand, I think it could be dangerous to mix the explicit openmp parallelism of yambo with the multi-threaded use of MKL (suppose e.g. a call to a boas routine is inside a omp parallel region of yambo)... I think the problem is related to the fact some of MKL routines are not thread-safe (please correct me here if I am wrong)

take care
Andrea
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

javad
Posts: 44
Joined: Fri Feb 28, 2014 10:23 pm

Re: MKL and openMP

Post by javad » Tue Jun 23, 2015 2:09 pm

Thank you for the fast reply

I will try and make you know if it works

Javad
Javad Exirifard
IPM - Institute for Research in Fundamental Sciences
P. O. Box 19395-5746
Niavaran Square
Tehran, Iran

Post Reply