yambo 4.4.0 ./configure bug detecting libxc

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
User avatar
wachr
Posts: 32
Joined: Wed Sep 24, 2014 4:43 pm

yambo 4.4.0 ./configure bug detecting libxc

Post by wachr » Tue Dec 17, 2019 3:50 pm

Dear yambo community,

while compiling yambo, I found that the use of external libxc libraries is hardly possible. After specifyfing the path for libxc (we have libxc 4.2.1 as a module), ./configure gave me the lines:

Code: Select all

checking for libxc... Found external LibXC version=400, (should be 2xx and >= 203)
Compatible external LibXC not found/specified. Internal to be compiled.
It is not a damage, as the internal libxc will be compiled - but I think that this behavior is not intended. Just to make you aware of this.

Kind regards!
Christian Wagner
Institute of Physics
Chemnitz University of Technology, Germany

User avatar
Davide Sangalli
Posts: 614
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy
Contact:

Re: yambo 4.4.0 ./configure bug detecting libxc

Post by Davide Sangalli » Tue Dec 17, 2019 4:39 pm

Dear Christian Wagner,
you are right. For now we have checked the compatibility of yambo with libxc up to version 210.
This is the reason why the yambo does not accept version 4x.

You can try to switch off the check by changing the file config/libxc.m4
Replace line

Code: Select all

AC_LINK_IFELSE($testprog_4x,  [acx_libxc_version=400, acx_libxc_ok=no ], [])
with

Code: Select all

AC_LINK_IFELSE($testprog_4x,  [acx_libxc_version=400, acx_libxc_ok=yes], [])
Then run autoconf.

The library will be accepted, however I fear the compilation or the code will not work properly.

Best,
D.
Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre
https://sites.google.com/view/davidesangalli
http://www.max-centre.eu/

User avatar
wachr
Posts: 32
Joined: Wed Sep 24, 2014 4:43 pm

Re: yambo 4.4.0 ./configure bug detecting libxc

Post by wachr » Tue Dec 17, 2019 4:46 pm

Dear Davide,

thank you very much!
The library will be accepted, however I fear the compilation or the code will not work properly.
OK, looks as if I should stick to the default. The automatically downloaded libxc is 2.2.3 - the latest is 4.3.4. Does this harm to any calculations using later versions of the libxc, such as QuantumEsppresso + libxc 4. ...?

Thank you!
Christian Wagner
Institute of Physics
Chemnitz University of Technology, Germany

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: yambo 4.4.0 ./configure bug detecting libxc

Post by Daniele Varsano » Tue Dec 17, 2019 5:48 pm

Dear Christian,
Does this harm to any calculations using later versions of the libxc, such as QuantumEsppresso + libxc 4. ...?
Libxc in QE is not the default, by default, it is used the internal xc library. Most common xc functionals (LDA,PBE, even PBE0) were extensively tested in the sense that internal QE-XC and Yambo via LIbxc provided consistent results. I would be surprised if incompatibility arises between different version of Libxc. In any case, now Yambo reports the value of the E_xc that can be directly compared with the QE output. Please report in case you notice something wrong (pay attention to non-linear core-correction, that anyway is better to avoid).

Best,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

User avatar
wachr
Posts: 32
Joined: Wed Sep 24, 2014 4:43 pm

Re: yambo 4.4.0 ./configure bug detecting libxc

Post by wachr » Wed Dec 18, 2019 9:50 am

Dear Daniele,

thank you very much! This is an interesting point to look for in case of inconsistencies! (So far, never occured, question was rather academic).

I have some python scripts that read both, qe output (*.nscf.out) and yambo output (report files and qp files). But as long as one uses LDA and GGA flavors, I would also be surprised.

Best!
Christian
Christian Wagner
Institute of Physics
Chemnitz University of Technology, Germany

Post Reply