<div dir="ltr">I am going to beg to differ about dynamic versus static compiling. It is convenient to have a version that can be ported to other clusters and only need dynamic linking of the mpi fabric (i.e. impi or openmpi). Not every cluster has up to date (or even working) scalapack!<div><br></div><div>The same holds for fftw...</div><div><br></div><div>It should not be hard to do something like add a "ifndef $SCALAPACK" to the Makefiles, for version 17.2 (or 18.1).</div><div><br></div><div>(The user is right, except when she is wrong.)</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 30, 2017 at 10:03 AM, Ruh Thomas <span dir="ltr"><<a href="mailto:thomas.ruh@tuwien.ac.at" target="_blank">thomas.ruh@tuwien.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Pavel,<br>
<br>
I looked into static linking with no / minimal changes into the default Makefiles of WIEN2k and I am afraid it is not possible - the suggested workaround by Gavin should not work. At least it did not for me. Mainly because, as Gavin already mentioned, siteconfig_lapw sets all the linking up dynamically.<br>
Our point of view in the WIEN-group is that dynamic linking is preferential anyway (especially if you want mpi-parallelism), because the binaries would be rather large.<br>
<br>
In case you absolutely need statically linked ScaLAPACK and/or FFTW-libraries you will have to manually adapt the necessary Makefiles.<br>
<br>
Kind regards<br>
Thomas<br>
<br>
______________________________<wbr>__________<br>
Von: Wien <<a href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at">wien-bounces@zeus.theochem.<wbr>tuwien.ac.at</a>> im Auftrag von Gavin Abo <<a href="mailto:gsabo@crimson.ua.edu">gsabo@crimson.ua.edu</a>><br>
Gesendet: Montag, 30. Oktober 2017 12:59<br>
An: <a href="mailto:wien@zeus.theochem.tuwien.ac.at">wien@zeus.theochem.tuwien.ac.<wbr>at</a><br>
Betreff: Re: [Wien] configuring static linking with siteconfig<br>
<br>
In WIEN2k versions older than 17.1, I think the advanced user could<br>
directly modify WIEN2k_OPTIONS (or OPTIONS), then run siteconfig to load<br>
the file and just do a save to propagate the settings to the Makefiles.<br>
I think it might be with the parallel settings that the new<br>
auto-generation in siteconfig_lapw changed it so that also no longer works.<br>
<br>
On line 2036 in siteconfig_lapw, there should be:<br>
<br>
set SCALAPACK_LIBNAME = 'mkl_scalapack_lp64'<br>
<br>
Have you tried changing it to:<br>
<br>
set SCALAPACK_LIBNAME = 'ibscalapack.a'<br>
<br>
Similarly, maybe try changing line 2795:<br>
<br>
set fftwlibspara = "-l${FFTW_LIBNAME}_mpi"<br>
<br>
to say<br>
<br>
set fftwlibspara = "-lfftw3_mpi.a"<br>
<br>
On 10/30/2017 3:21 AM, Pavel Ondračka wrote:<br>
> Dear Wien2k mailing list,<br>
><br>
> what is the recomended way to link Wien2k with static libs using the<br>
> siteconfig script? For example when I go to "SCALAPACK Settings" I<br>
> would like to link with static libscalapack.a, however I can only set<br>
> the SCALAPACKROOT and SCALAPACK_LIBNAME and the final SCALAPACK_LIBS is<br>
> autogenerated to link with a dynamical library. Is there a way to edit<br>
> the SCALAPACK_LIBS and link with a static library without editing the<br>
> generated makefiles manually? BTW similar problems is with fftw<br>
> settings...<br>
><br>
> Best regards<br>
> Pavel Ondračka<br>
______________________________<wbr>_________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.<wbr>at</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__zeus.theochem.tuwien.ac.at_mailman_listinfo_wien&d=DwIFBA&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=Q6Vgp8k1XOuU6scVd5mmvZz1YmYubE5qd9eDgXDOH9g&s=xSQeLsy-LVR66lvZdADYnonOoM0A44mTqV0kKpZScZA&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__zeus.<wbr>theochem.tuwien.ac.at_mailman_<wbr>listinfo_wien&d=DwIFBA&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>Q6Vgp8k1XOuU6scVd5mmvZz1YmYubE<wbr>5qd9eDgXDOH9g&s=xSQeLsy-<wbr>LVR66lvZdADYnonOoM0A44mTqV0kKp<wbr>ZScZA&e=</a><br>
SEARCH the MAILING-LIST at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_index.html&d=DwIFBA&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=Q6Vgp8k1XOuU6scVd5mmvZz1YmYubE5qd9eDgXDOH9g&s=wdlvciFGzC1kPAxeB-rTSyqpzfXnq5o5X9P5ynYqpW4&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__www.<wbr>mail-2Darchive.com_wien-<wbr>40zeus.theochem.tuwien.ac.at_<wbr>index.html&d=DwIFBA&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>Q6Vgp8k1XOuU6scVd5mmvZz1YmYubE<wbr>5qd9eDgXDOH9g&s=<wbr>wdlvciFGzC1kPAxeB-<wbr>rTSyqpzfXnq5o5X9P5ynYqpW4&e=</a><br>
______________________________<wbr>_________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.<wbr>at</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__zeus.theochem.tuwien.ac.at_mailman_listinfo_wien&d=DwIFBA&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=Q6Vgp8k1XOuU6scVd5mmvZz1YmYubE5qd9eDgXDOH9g&s=xSQeLsy-LVR66lvZdADYnonOoM0A44mTqV0kKpZScZA&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__zeus.<wbr>theochem.tuwien.ac.at_mailman_<wbr>listinfo_wien&d=DwIFBA&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>Q6Vgp8k1XOuU6scVd5mmvZz1YmYubE<wbr>5qd9eDgXDOH9g&s=xSQeLsy-<wbr>LVR66lvZdADYnonOoM0A44mTqV0kKp<wbr>ZScZA&e=</a><br>
SEARCH the MAILING-LIST at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_index.html&d=DwIFBA&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=Q6Vgp8k1XOuU6scVd5mmvZz1YmYubE5qd9eDgXDOH9g&s=wdlvciFGzC1kPAxeB-rTSyqpzfXnq5o5X9P5ynYqpW4&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=http-3A__www.<wbr>mail-2Darchive.com_wien-<wbr>40zeus.theochem.tuwien.ac.at_<wbr>index.html&d=DwIFBA&c=<wbr>yHlS04HhBraes5BQ9ueu5zKhE7rtNX<wbr>t_d012z2PA6ws&r=U_<wbr>T4PL6jwANfAy4rnxTj8IUxm818jnvq<wbr>KFdqWLwmqg0&m=<wbr>Q6Vgp8k1XOuU6scVd5mmvZz1YmYubE<wbr>5qd9eDgXDOH9g&s=<wbr>wdlvciFGzC1kPAxeB-<wbr>rTSyqpzfXnq5o5X9P5ynYqpW4&e=</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Professor Laurence Marks</span><br></div><div dir="ltr"><span style="font-size:12.8px">"Research is to see what everybody else has seen, and to think what nobody else has thought", </span><span style="font-size:12.8px">Albert Szent-Gyorgi</span><br><a href="http://www.numis.northwestern.edu" target="_blank">www.numis.northwestern.edu</a> ; <span style="font-size:12.8px">Corrosion in 4D: </span><a href="http://MURI4D.numis.northwestern.edu" style="font-size:12.8px" target="_blank">MURI4D.numis.northwestern.edu</a><div><span style="font-size:12.8px">Partner of the CFW 100% program for gender equity, </span><a href="http://www.cfw.org/100-percent" style="font-size:12.8px" target="_blank">www.cfw.org/100-percent</a></div><div>Co-Editor, Acta Cryst A</div></div></div></div></div></div></div></div></div></div></div>
</div>