[petsc-users] PETSC configuration on linux with intel MKL

Pierre Jolivet pierre at joliv.et
Sun Dec 29 14:15:25 CST 2024


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.

Thanks,
Pierre

> On 29 Dec 2024, at 9:09 PM, Bruno Ramon Batista Fernande <brbfernandes at utexas.edu> wrote:
> 
> Hi Pierre,
> 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.
> Best regards,
> Bruno
> 
> On Sun, Dec 29, 2024 at 1:45 PM Pierre Jolivet <pierre at joliv.et <mailto:pierre at joliv.et>> wrote:
>> 
>> 
>>> On 30 Dec 2024, at 2:24 AM, Bruno Ramon Batista Fernande <brbfernandes at utexas.edu <mailto:brbfernandes at utexas.edu>> wrote:
>>> 
>>> Hi Satish,
>>> Thank you for your prompt response.
>>> It seems like it doesn't reach the point of writing the configure.log for this issue.
>>> The command used is below. I am using mpich and oneAPI both installed from apt from Ubuntu.
>>> 
>>> ./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
>> 
>> It’s not -libs=, it’s -lib=, and there is no need for quotation marks.
>> Try again, and if it still does not work, please send configure.log, there is no reason for it not being generated.
>> 
>> Thanks,
>> Pierre
>> 
>>> Best regards,
>>> Bruno
>>> 
>>> On Sun, Dec 29, 2024 at 8:15 AM Satish Balay <balay.anl at fastmail.org <mailto:balay.anl at fastmail.org>> wrote:
>>>> Hm - what was the configure command [with options] used here? Can you send corresponding configure.log?
>>>> 
>>>> Satish
>>>> 
>>>> On Sat, 28 Dec 2024, Bruno Ramon Batista Fernande wrote:
>>>> 
>>>> > Hi,
>>>> > I am trying to use the oneAPI MKL 2025 into my PETSC configuration on
>>>> > Linux. However, I get the following error as I enter the names of the mkl
>>>> > libraries:
>>>> > *********************************************************************************************
>>>> >                         ERROR in COMMAND LINE ARGUMENT to ./configure
>>>> > ---------------------------------------------------------------------------------------------
>>>> >   The option
>>>> > 
>>>> > /opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_lapack95_lp64.a,/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl_gf_lp64.a,
>>>> >   should probably be
>>>> > 
>>>> > /opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl-lapack95-lp64.a,/opt/intel/oneapi/mkl/2025.0/lib/intel64/libmkl-gf-lp64.a,
>>>> > *********************************************************************************************
>>>> > As you can see, the configure suggest to use libraries with hyphen in their
>>>> > names but the original libraries have underscores in it. Any way to bypass
>>>> > this issue without creating links or creating copies of files?
>>>> > Best regards,
>>>> > Bruno
>>>> > 
>>>> 
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20241229/7068318d/attachment.html>


More information about the petsc-users mailing list