<div dir="ltr"><div dir="ltr">On Wed, Mar 16, 2022 at 1:04 AM Ernesto Prudencio via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<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 lang="EN-US" style="overflow-wrap: break-word;">
<div class="gmail-m_-40448078222889676WordSection1">
<p class="MsoNormal">Hi.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have an application that uses MKL for some convolution operations. Such MKL functionality uses, I suppose, BLAS/LAPACK underneath.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This same application of mine also uses PETSc for other purposes. I can supply blas and lapack to PETSc in two ways:<u></u><u></u></p>
<ol style="margin-top:0in" start="1" type="a">
<li class="gmail-m_-40448078222889676MsoListParagraph" style="margin-left:0in">Using the configuration option--with-blaslapack-lib="-L${MKL_DIR}/lib/intel64 -lfile1 -lfile2 … ".  For reasons related to compilation environments + docker images + cloud, I am having
 issues with this option (a) _<i>after</i>_ PETSc builds successfully (both make and make install work fine).<u></u><u></u></li><li class="gmail-m_-40448078222889676MsoListParagraph" style="margin-left:0in">Using the configuration option --download-fblaslapack=yes. This options works fine for the purpose of generating my application executable.<u></u><u></u></li></ol>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If I use option (b), I understand that I will have two different blas/lapack codes available during the execution of my application: one from MKL, the other being the one that PETSc downloads during its configuration.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Question 1) Do you foresee any potential run time issue with option (b)?</p></div></div></blockquote><div><br></div><div>All those BLAS/LAPACK functions have the same name. If MKL does something slightly different in one, you could have problems. The annoying thing is that it will probably work 99% of the time.</div><div><br></div><div>What problem do you have with a)?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_-40448078222889676WordSection1">
<p class="MsoNormal">Question 2) In the case PETSc, is there any problem if run “make” and “make install” without specifying PETSC_ARCH?</p></div></div></blockquote><div><br></div><div>It will choose an ARCH if you do not specify one.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="gmail-m_-40448078222889676WordSection1"><p class="MsoNormal"> </p><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">Thank you in advance,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Ernesto.<u></u><u></u></p>
<br>
<p align="Center" style="margin:0px"><span style="font-size:10pt;font-family:Calibri;color:rgb(0,0,0)">Schlumberger-Private</span></p>
</div>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>