<div dir="ltr">
<div>Hi Satish and Pierre,</div><div>It worked with the first shell friendly syntax recommended by Satish.</div><div>I got that other syntax from a Windows configuration we have.</div><div>Thank you so much for the help.</div><div>Best regards,</div><div>Bruno<br></div>
</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Dec 29, 2024 at 4:07 PM Satish Balay <<a href="mailto:balay.anl@fastmail.org">balay.anl@fastmail.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This syntax is useful for python - for ex.: config/examples*.py<br>
<br>
Best to use shell friendly notation - when not using python scripts. i.e.:<br>
<br>
--with-blaslapack-lib="/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_blas95_lp64.a /opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_lapack95_lp64.a /opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_gf_lp64.a /opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_sequential.a /opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_core.a" <br>
<br>
or<br>
<br>
--with-blaslapack-lib="-L/opt/intel/oneapi/mkl/2025.0/lib/intel64/ -lmkl_lapack95_lp64 -lmklblas95_lp64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_lapack95_lp64"<br>
<br>
Also "--with-blaslapack-dir=/opt/intel/oneapi/mkl/2025.0/lib/intel64" should automatically find and give something like:<br>
<br>
BlasLapack:<br>
Intel MKL Version: 20220000<br>
Includes: -I/nfs/gce/software/custom/linux-ubuntu22.04-x86_64/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/intel-oneapi-mkl-2022.0.2-lzrncoj/mkl/2022.0.2/include<br>
Libraries: -Wl,-rpath,/nfs/gce/software/custom/linux-ubuntu22.04-x86_64/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/intel-oneapi-mkl-2022.0.2-lzrncoj/mkl/2022.0.2/lib/intel64 -L/nfs/gce/software/custom/linux-ubuntu22.04-x86_64/spack/opt/spack/linux-ubuntu22.04-x86_64/gcc-11.2.0/intel-oneapi-mkl-2022.0.2-lzrncoj/mkl/2022.0.2/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -liomp5 -ldl -lpthread<br>
<br>
Satish<br>
<br>
On Sun, 29 Dec 2024, Pierre Jolivet wrote:<br>
<br>
> I just copied you configure line, you also have a whitespace in the [ ], best to remove that: libmkl_blas95_lp64.a", "/opt/intel/ -> libmkl_blas95_lp64.a,/opt/intel/ and so on.<br>
> <br>
> Thanks,<br>
> Pierre<br>
> <br>
> > On 29 Dec 2024, at 9:09 PM, Bruno Ramon Batista Fernande <<a href="mailto:brbfernandes@utexas.edu" target="_blank">brbfernandes@utexas.edu</a>> wrote:<br>
> > <br>
> > Hi Pierre,<br>
> > I tried it and got the same error message. Still, no configure.log was generated. It seems like it doesn't even start the configuration.<br>
> > Best regards,<br>
> > Bruno<br>
> > <br>
> > On Sun, Dec 29, 2024 at 1:45 PM Pierre Jolivet <<a href="mailto:pierre@joliv.et" target="_blank">pierre@joliv.et</a> <mailto:<a href="mailto:pierre@joliv.et" target="_blank">pierre@joliv.et</a>>> wrote:<br>
> >> <br>
> >> <br>
> >>> On 30 Dec 2024, at 2:24 AM, Bruno Ramon Batista Fernande <<a href="mailto:brbfernandes@utexas.edu" target="_blank">brbfernandes@utexas.edu</a> <mailto:<a href="mailto:brbfernandes@utexas.edu" target="_blank">brbfernandes@utexas.edu</a>>> wrote:<br>
> >>> <br>
> >>> Hi Satish,<br>
> >>> Thank you for your prompt response.<br>
> >>> It seems like it doesn't reach the point of writing the configure.log for this issue.<br>
> >>> The command used is below. I am using mpich and oneAPI both installed from apt from Ubuntu.<br>
> >>> <br>
> >>> ./configure --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 --with-debugging=0 --download-hypre --with-blaslapack-libs=["/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_blas95_lp64.a", "/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_lapack95_lp64.a","/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_gf_lp64.a", "/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_sequential.a","/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_core.a"] --with-scalapack-libs=["/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_scalapack_lp64.a","/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_blacs_lp64.a"] --with-scalapack-include=/opt/intel/oneapi/mkl/2025.0/include<br>
> >> <br>
> >> It’s not -libs=, it’s -lib=, and there is no need for quotation marks.<br>
> >> Try again, and if it still does not work, please send configure.log, there is no reason for it not being generated.<br>
> >> <br>
> >> Thanks,<br>
> >> Pierre<br>
> >> <br>
> >>> Best regards,<br>
> >>> Bruno<br>
> >>> <br>
> >>> On Sun, Dec 29, 2024 at 8:15 AM Satish Balay <<a href="mailto:balay.anl@fastmail.org" target="_blank">balay.anl@fastmail.org</a> <mailto:<a href="mailto:balay.anl@fastmail.org" target="_blank">balay.anl@fastmail.org</a>>> wrote:<br>
> >>>> Hm - what was the configure command [with options] used here? Can you send corresponding configure.log?<br>
> >>>> <br>
> >>>> Satish<br>
> >>>> <br>
> >>>> On Sat, 28 Dec 2024, Bruno Ramon Batista Fernande wrote:<br>
> >>>> <br>
> >>>> > Hi,<br>
> >>>> > I am trying to use the oneAPI MKL 2025 into my PETSC configuration on<br>
> >>>> > Linux. However, I get the following error as I enter the names of the mkl<br>
> >>>> > libraries:<br>
> >>>> > *********************************************************************************************<br>
> >>>> > ERROR in COMMAND LINE ARGUMENT to ./configure<br>
> >>>> > ---------------------------------------------------------------------------------------------<br>
> >>>> > The option<br>
> >>>> > <br>
> >>>> > /opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_lapack95_lp64.a,/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_gf_lp64.a,<br>
> >>>> > should probably be<br>
> >>>> > <br>
> >>>> > /opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl-lapack95-lp64.a,/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl-gf-lp64.a,<br>
> >>>> > *********************************************************************************************<br>
> >>>> > As you can see, the configure suggest to use libraries with hyphen in their<br>
> >>>> > names but the original libraries have underscores in it. Any way to bypass<br>
> >>>> > this issue without creating links or creating copies of files?<br>
> >>>> > Best regards,<br>
> >>>> > Bruno<br>
> >>>> > <br>
> >>>> <br>
> >> <br>
> <br>
> <br>
</blockquote></div>