<div dir="auto"><div>Linkers will by default (99.99% confidence) add ".so" to a name for dynamic; if that is not present they will add ".a". Hence use of -lfftw3 will pickup libfftw3.so or libfftw3.a.<br><br><div data-smartmail="gmail_signature">_____<br>Professor Laurence Marks<br>"Research is to see what everybody else has seen, and to think what nobody else has thought", Albert Szent-Gyorgi<br><a href="http://www.numis.northwestern.edu">www.numis.northwestern.edu</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 14, 2020, 07:26 Pavel Ondračka <<a href="mailto:pavel.ondracka@email.cz">pavel.ondracka@email.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 2020-09-14 at 06:08 -0600, Gavin Abo wrote:<br>
> See that "./configure --enable-mpi" was used.<br>
> <br>
> Of note, sometimes -gcc-sys is needed:<br>
> <br>
> <a href="https://urldefense.com/v3/__https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18664.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS6IFBptXQ$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18664.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS6IFBptXQ$</a> <br>
<br>
Out of interest I went through the link and I don't see how the linker<br>
can find/use the FFTW libraries. The FFTW_LIBS and FFTW_PLIBS clearly<br>
specify to link with the dynamic libraries:<br>
FFTW_OPT : -DFFTW3 -I/home/username/fftw3/include<br>
FFTW_LIBS : -L/home/username/fftw3/lib -lfftw3<br>
FFTW_PLIBS : -lfftw3_mpi<br>
<br>
however the directory with FFTW contains only the static libraries:<br>
<br>
/home/username/fftw3/lib:<br>
total 2108<br>
drwxr-xr-x 3 username username 4096 May 27 22:57 cmake<br>
-rw-r--r-- 1 username username 1933432 May 27 22:57 libfftw3.a<br>
-rwxr-xr-x 1 username username 893 May 27 22:57 <a href="http://libfftw3.la" rel="noreferrer noreferrer" target="_blank">libfftw3.la</a><br>
-rw-r--r-- 1 username username 201232 May 27 22:57 libfftw3_mpi.a<br>
-rwxr-xr-x 1 username username 939 May 27 22:57 <a href="http://libfftw3_mpi.la" rel="noreferrer noreferrer" target="_blank">libfftw3_mpi.la</a><br>
drwxr-xr-x 2 username username 4096 May 27 22:57 pkgconfig<br>
<br>
IMO this could work only under two lucky circumstances:<br>
either one has another libfftw3.so and libfftw3_mpi.so somewhere in the<br>
system path<br>
or it in fact doesn't link with the FFTW libs<br>
in /home/username/fftw3/lib but with the FFTW-compatible interface<br>
inside the MKL<br>
<br>
> On 9/13/2020 2:53 AM, Ilias Miroslav, doc. RNDr., PhD. wrote:<br>
> > Hello,<br>
> > <br>
> > to profit from parallelization, one has to install ELPA and the<br>
> > parallel version fftw library.<br>
> > <br>
> > For fftw library I used ./configure --enable-mpi, but Wien2k<br>
> > installator says "!!! WARNING: No MPI version of the FFTW library<br>
> > found!" But my installed fftw-3.3.8/lib<br>
> > contains also libfftw3_mpi.a .<br>
> > <br>
> > Any clues what is wrong ? Maybe it would be better to have defined<br>
> > environmental variables from ELPA, fftw ?<br>
> > <br>
> > Miro<br>
> <br>
> <br>
> _______________________________________________<br>
> Wien mailing list<br>
> <a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank" rel="noreferrer">Wien@zeus.theochem.tuwien.ac.at</a><br>
> <a href="https://urldefense.com/v3/__http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS7zBzN5wQ$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS7zBzN5wQ$</a> <br>
> SEARCH the MAILING-LIST at: <br>
> <a href="https://urldefense.com/v3/__http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS5KGygnKw$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS5KGygnKw$</a> <br>
<br>
_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank" rel="noreferrer">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="https://urldefense.com/v3/__http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS7zBzN5wQ$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS7zBzN5wQ$</a> <br>
SEARCH the MAILING-LIST at: <a href="https://urldefense.com/v3/__http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS5KGygnKw$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!E4g1pwAyAnEalyTRgC-3W-G9PjrnjQyeQ2rogzXFW466AhffGupbkMeeLTiuuS5KGygnKw$</a> <br>
</blockquote></div></div></div>