PETSC configuration on linux with intel MKL
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
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
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 Best regards, Bruno On Sun, Dec 29, 2024 at 8:15 AM Satish Balay <[email protected]> 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
On 30 Dec 2024, at 2:24 AM, Bruno Ramon Batista Fernande <[email protected]> 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 <[email protected] <mailto:[email protected]>> 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
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 <[email protected]> wrote:
On 30 Dec 2024, at 2:24 AM, Bruno Ramon Batista Fernande < [email protected]> 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 <[email protected]> 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
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 <[email protected]> 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 <[email protected] <mailto:[email protected]>> wrote:
On 30 Dec 2024, at 2:24 AM, Bruno Ramon Batista Fernande <[email protected] <mailto:[email protected]>> 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 <[email protected] <mailto:[email protected]>> 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
This syntax is useful for python - for ex.: config/examples*.py Best to use shell friendly notation - when not using python scripts. i.e.: --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" or --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" Also "--with-blaslapack-dir=/opt/intel/oneapi/mkl/2025.0/lib/intel64" should automatically find and give something like: BlasLapack: Intel MKL Version: 20220000 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 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 Satish On Sun, 29 Dec 2024, Pierre Jolivet wrote:
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 <[email protected]> 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 <[email protected] <mailto:[email protected]>> wrote:
On 30 Dec 2024, at 2:24 AM, Bruno Ramon Batista Fernande <[email protected] <mailto:[email protected]>> 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 <[email protected] <mailto:[email protected]>> 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
Hi Satish and Pierre, It worked with the first shell friendly syntax recommended by Satish. I got that other syntax from a Windows configuration we have. Thank you so much for the help. Best regards, Bruno On Sun, Dec 29, 2024 at 4:07 PM Satish Balay <[email protected]> wrote:
This syntax is useful for python - for ex.: config/examples*.py
Best to use shell friendly notation - when not using python scripts. i.e.:
--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"
or
--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"
Also "--with-blaslapack-dir=/opt/intel/oneapi/mkl/2025.0/lib/intel64" should automatically find and give something like:
BlasLapack: Intel MKL Version: 20220000 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 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
Satish
On Sun, 29 Dec 2024, Pierre Jolivet wrote:
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 < [email protected]> 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 <[email protected] <mailto:[email protected]>> wrote:
On 30 Dec 2024, at 2:24 AM, Bruno Ramon Batista Fernande <
[email protected] <mailto:[email protected]>> 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 <[email protected] <mailto:[email protected]>> 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
Glad its working! Thanks for the update. Satish On Sun, 29 Dec 2024, Bruno Ramon Batista Fernande wrote:
Hi Satish and Pierre, It worked with the first shell friendly syntax recommended by Satish. I got that other syntax from a Windows configuration we have. Thank you so much for the help. Best regards, Bruno
On Sun, Dec 29, 2024 at 4:07 PM Satish Balay <[email protected]> wrote:
This syntax is useful for python - for ex.: config/examples*.py
Best to use shell friendly notation - when not using python scripts. i.e.:
--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"
or
--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"
Also "--with-blaslapack-dir=/opt/intel/oneapi/mkl/2025.0/lib/intel64" should automatically find and give something like:
BlasLapack: Intel MKL Version: 20220000 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 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
Satish
On Sun, 29 Dec 2024, Pierre Jolivet wrote:
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 < [email protected]> 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 <[email protected] <mailto:[email protected]>> wrote:
On 30 Dec 2024, at 2:24 AM, Bruno Ramon Batista Fernande <
[email protected] <mailto:[email protected]>> 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 <[email protected] <mailto:[email protected]>> 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
participants (3)
-
Bruno Ramon Batista Fernande -
Pierre Jolivet -
Satish Balay