<div dir="ltr"><div dir="ltr">On Tue, Mar 8, 2022 at 12:47 PM Giovanni Cantele <<a href="mailto:giovanni.cantele@spin.cnr.it">giovanni.cantele@spin.cnr.it</a>> wrote:</div><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">However, if I try to run the above configure command adding<div>LDFLAGS=“-L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_pgi_thread -lmkl_core -pgf90libs -mp -lpthread -lm -ldl”</div><div>the configure stops finding the cuda enviroment</div></div></blockquote><div><br></div><div>MKL libraries should be defined in BLAS_LIBS, not in LDFLAGS. Tampering with LDFLAGS is a recipe for disaster: there is invariably something that should be there but isn't, or vice versa.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div>if I skip LDFLAGS (bu with MKLROOT correctly set up), the cuda environment is correctly detected but MKL are not automatically detected.</div></div></blockquote><div><br></div><div>some versions of MKL are not detected with some versions of NVHPC because some symbols are missing. On my machine, v.2020.3.275 works, v.2020.4.304 doesn't. You should look into config.log and find why the test on mkl fails.<br></div><div><br> </div><div>In any event: MKL works on CPUs and won't make a major difference if you run on GPUs</div><div><br></div><div>Paolo</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><br></div><div>Could you please check the above script and, possibly, give any hint useful to solve the issue?</div><div><br></div><div>I thank you all in advance.</div><div><br></div><div>Giovanni</div><div><br></div><div><br></div><div><br><div>
<div style="text-align:start;text-indent:0px"><span style="color:rgb(0,0,0);letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">-- <br><br>Giovanni Cantele, PhD<br>CNR-SPIN<br>c/o Dipartimento di Fisica<br>Universita' di Napoli "Federico II"<br>Complesso Universitario M. S. Angelo - Ed. 6<br>Via Cintia, I-80126, Napoli, Italy<br><a href="mailto:giovanni.cantele@spin.cnr.it" target="_blank">e-mail: giovanni.cantele@spin.cnr.it</a><br>Phone: +39 081 676910<br>Skype contact: giocan74<br><br>ResearcherID: <a href="http://www.researcherid.com/rid/A-1951-2009" target="_blank">http://www.researcherid.com/rid/A-1951-2009</a><br>Web page:<span> </span></span><a href="https://sites.google.com/view/giovanni-cantele/home" target="_blank">https://sites.google.com/view/giovanni-cantele/home</a></div>
</div>
<br></div></div>_______________________________________________<br>
The Quantum ESPRESSO community stands by the Ukrainian<br>
people and expresses its concerns about the devastating<br>
effects that the Russian military offensive has on their<br>
country and on the free and peaceful scientific, cultural,<br>
and economic cooperation amongst peoples<br>
_______________________________________________<br>
Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu" rel="noreferrer" target="_blank">www.max-centre.eu</a>)<br>
users mailing list <a href="mailto:users@lists.quantum-espresso.org" target="_blank">users@lists.quantum-espresso.org</a><br>
<a href="https://lists.quantum-espresso.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.quantum-espresso.org/mailman/listinfo/users</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>Univ. Udine, via delle Scienze 206, 33100 Udine, Italy<br>Phone +39-0432-558216, fax +39-0432-558222<br><br></div></div></div></div></div></div>