[petsc-users] MKL installation can't be used to configure PETSc
Yongzhong Li
yongzhong.li at mail.utoronto.ca
Thu Jul 25 10:21:52 CDT 2024
Thank you Satish!
I think I find the issue, the MKLROOT should be one of the subdirectory for the previous address.
Another question, do you know if PETSc can be configured with AMD AOCL https://urldefense.us/v3/__https://www.amd.com/en/developer/aocl.html__;!!G_uCfscf7eWS!dPM5PLRb-ePnG4HHZzs-Z7FUTkod4fvyBeYnsMy2Kg11pRg4gTAZ2D7J7w0Cx5UbezSeYC5tDcB2GqbdDP2VwiDJ-vwREa2E1Ns$ as the BLAS and LAPACK.
Thanks,
Yongzhong
From: Satish Balay <balay.anl at fastmail.org>
Date: Tuesday, July 23, 2024 at 10:43 PM
To: Yongzhong Li <yongzhong.li at mail.utoronto.ca>
Cc: petsc-users at mcs.anl.gov <petsc-users at mcs.anl.gov>, petsc-maint at mcs.anl.gov <petsc-maint at mcs.anl.gov>
Subject: Re: [petsc-users] MKL installation can't be used to configure PETSc
[????????? balay.anl at fastmail.org ????????? https://urldefense.us/v3/__https://aka.ms/LearnAboutSenderIdentification?**K__;Pz8_Pz8_Pz8_Pz8_!!G_uCfscf7eWS!dPM5PLRb-ePnG4HHZzs-Z7FUTkod4fvyBeYnsMy2Kg11pRg4gTAZ2D7J7w0Cx5UbezSeYC5tDcB2GqbdDP2VwiDJ-vwRUsxH6jE$ ]<https://urldefense.us/v3/__https://aka.ms/LearnAboutSenderIdentification?**L5d__;Pz8_Pz8_Pz8_Pz8_JQ!!G_uCfscf7eWS!dPM5PLRb-ePnG4HHZzs-Z7FUTkod4fvyBeYnsMy2Kg11pRg4gTAZ2D7J7w0Cx5UbezSeYC5tDcB2GqbdDP2VwiDJ-vwRmphrP9U$ >
Are you sure you are providing the correct path?
>>>>
--with-blaslapack-dir=/tool/pandora64/.package/oneMKL-2021.3/mkl
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/64
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/ia64
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/em64t
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/intel64
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/64
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/ia64
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/em64t
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/intel64
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/32
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/ia32
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/32
MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/ia32
<<<
Normally you should see something like the following [wrt the dir you specify to --with-blaslapack-dir]
>>>
balay at cg:~$ env |grep MKL
MKLROOT=/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
balay at cg:~$ find /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 -name libmkl_core.so
/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/ia32/libmkl_core.so
/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/libmkl_core.so
Satish
On Wed, 24 Jul 2024, Yongzhong Li wrote:
> Dear PETSc developers,
>
> Recently, when I configured the PETSc with blas/lapack provided by Intel MKL, I got the following error message,
>
>
> [ 1%] Performing configure step for 'external_petsc'
> =============================================================================================
> Configuring PETSc to compile on your system
> =============================================================================================
> =============================================================================================
> ***** WARNING *****
> Found environment variable: MAKEFLAGS=s. Ignoring it! Use "./configure
> MAKEFLAGS=$MAKEFLAGS" if you really want to use this value
> =============================================================================================
> TESTING: checkLib from config.packages.BlasLapack(config/BuildSystem/config/packages/BlasLapack.py:114)
> *********************************************************************************************
> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
> ---------------------------------------------------------------------------------------------
> You set a value for --with-blaslapack-dir=<dir>, but
> /tool/pandora64/.package/oneMKL-2021.3/mkl cannot be used
> *********************************************************************************************
>
> make[2]: *** [CMakeFiles/external_petsc.dir/build.make:92: external/builds/petsc-3.21.0/src/external_petsc-stamp/external_petsc-configure] Error 1
> make[1]: *** [CMakeFiles/Makefile2:114: CMakeFiles/external_petsc.dir/all] Error 2
> make: *** [Makefile:91: all] Error 2
>
> However, I think I was using the correct MKL root address to configure PETSc. I have attached the configure.log file, could you help me look at where might be wrong?
>
> Thanks!
> Yongzhong
> -----------------------------------------------------------
> Yongzhong Li
> PhD student | Electromagnetics Group
> Department of Electrical & Computer Engineering
> University of Toronto
> https://urldefense.us/v3/__https://can01.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.us*2Fv3*2F__http*3A*2F*2Fwww.modelics.org__*3B!!G_uCfscf7eWS!aa4LdUX0JV3i0ce3Jp20GLg521rd7L25vZSpFhCmlvTUN8EZFjfbk-IsfiTOD3IpCfXCB_zHA8nh1WMIkiHosbwZgv8PzmzPEec*24&data=05*7C02*7Cyongzhong.li*40mail.utoronto.ca*7Cac6df78a38534d3cced208dcab8a6ce0*7C78aac2262f034b4d9037b46d56c55210*7C0*7C0*7C638573858217585114*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C0*7C*7C*7C&sdata=c237HxX0WzOtO2poHtci4lSZaaG37UH81irVGlu*2FsUg*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!G_uCfscf7eWS!dPM5PLRb-ePnG4HHZzs-Z7FUTkod4fvyBeYnsMy2Kg11pRg4gTAZ2D7J7w0Cx5UbezSeYC5tDcB2GqbdDP2VwiDJ-vwR0oLyWl4$ <https://urldefense.us/v3/__http://www.modelics.org__;!!G_uCfscf7eWS!aa4LdUX0JV3i0ce3Jp20GLg521rd7L25vZSpFhCmlvTUN8EZFjfbk-IsfiTOD3IpCfXCB_zHA8nh1WMIkiHosbwZgv8PzmzPEec$>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240725/329c23c8/attachment-0001.html>
More information about the petsc-users
mailing list