<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 24, 2018 at 9:42 AM, Samuel Lanthaler <span dir="ltr"><<a href="mailto:s.lanthaler@gmail.com" target="_blank">s.lanthaler@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Satish and Stefano,<br>
<br>
Thank you for your answers. I believe I had initially tried to use the option --with-blaslapack-dir=[...], instead of specifying lib and include directly. But that gives me an error message:<br></blockquote><div><br></div><div>Satish, should this be</div><div><br></div><div>  --with-blaslapack-dir=/opt/intel/compilers_and_libraries_2017.4.196/linux/mkl/lib</div><div><br></div><div>?</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">
******************************<wbr>******************************<wbr>*******************<br>
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
You set a value for --with-blaslapack-dir=<dir>, but /opt/intel/compilers_and_libra<wbr>ries_2017.4.196/linux/mkl cannot be used<br>
******************************<wbr>******************************<wbr>*******************<br>
<br>
I attach the new configure.log. Do you think there is something wrong with the mkl version that I'm trying to use? Or is it only related to petsc?<br>
<br>
Cheers,<br>
Samuel<br>
<br>
<br>
On 04/24/2018 02:55 PM, Satish Balay wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Tue, 24 Apr 2018, Samuel Lanthaler wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi there,<br>
<br>
I was wondering if you could help me with the correct configuration of<br>
PETSc-dev version on a cluster (<a href="https://www.cscs.ch/" rel="noreferrer" target="_blank">https://www.cscs.ch/</a>)? I'm not sure which<br>
information would be useful to you, but basically the problem seems to be in<br>
correctly compiling it with intel compiler and the existing mkl library.<br>
<br>
The pre-installed mkl version is<br>
<br>
intel/<a href="http://17.0.4.196" rel="noreferrer" target="_blank">17.0.4.196</a><br>
<br>
I have tried various things and finally, I got it at least to compile with the<br>
following options (options chosen in reference to the mkl link advisor...):<br>
<br>
./configure --with-fc=ftn --with-cc=cc --with-cxx=CC --with-debugging=0<br>
--with-scalar-type=complex --download-scalapack --download-mumps=yes<br>
--download-superlu --with-batch --known-mpi-shared-libraries=1<br>
*--with-blaslapack-lib=*" ${MKLROOT}/lib/intel64/libmkl_<wbr>blas95_lp64.a<br>
${MKLROOT}/lib/intel64/libmkl_<wbr>lapack95_lp64.a -Wl,--start-group<br>
${MKLROOT}/lib/intel64/libmkl_<wbr>intel_lp64.a<br>
${MKLROOT}/lib/intel64/libmkl_<wbr>sequential.a<br>
${MKLROOT}/lib/intel64/libmkl_<wbr>core.a -Wl,--end-group -lpthread -lm -ldl"<br>
*--with-blaslapack-include*="[<wbr>/opt/intel/compilers_and_libra<wbr>ries_2017.4.196/linux/mkl/<wbr>include,/opt/intel/compilers_<wbr>and_libraries_2017.4.196/<wbr>linux/mkl/include/intel64/<wbr>lp64]"<br>
</blockquote>
Can you remove the above 2 options [--with-blaslapack-lib, --with-blaslapack-include] and use:<br>
<br>
--with-blas-lapack-dir=${MKLRO<wbr>OT}<br>
<br>
And see if you still have this problem?<br>
<br>
Satish<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--known-64-bit-blas-indices=0<br>
<br>
After compilation, when trying to compile<br>
/users/lanthale/petsc-git/src/<wbr>snes/examples/tutorials/ex5f I get linking<br>
errors (attached). Would anyone be able to help me out here? I really don't<br>
have a good understanding of this.<br>
<br>
I'm attaching the configuration.log file, as well as the linking errors when<br>
trying to compile ex5f.<br>
<br>
Thank you very much in advance!<br>
<br>
Best regards,<br>
Samuel<br>
<br>
</blockquote></blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><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.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>