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
MKL and openMP
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
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
-
- Posts: 44
- Joined: Fri Feb 28, 2014 10:23 pm
MKL and openMP
Javad Exirifard
IPM - Institute for Research in Fundamental Sciences
P. O. Box 19395-5746
Niavaran Square
Tehran, Iran
IPM - Institute for Research in Fundamental Sciences
P. O. Box 19395-5746
Niavaran Square
Tehran, Iran
-
- Posts: 214
- Joined: Fri Jan 31, 2014 11:13 am
Re: MKL and openMP
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
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
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
-
- Posts: 44
- Joined: Fri Feb 28, 2014 10:23 pm
Re: MKL and openMP
Thank you for the fast reply
I will try and make you know if it works
Javad
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
IPM - Institute for Research in Fundamental Sciences
P. O. Box 19395-5746
Niavaran Square
Tehran, Iran