<!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">
 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: //www. amd. com/en/developer/aocl. html as the BLAS
</div>
<!-- Preheader Text : END -->

<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerStart</div>

<!--[if ((ie)|(mso))]>
  <table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 16px 0px 16px 0px; direction: ltr" ><tr><td>
    <table border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%; border-radius:4px; border-top:4px solid #90a4ae;background-color:#D0D8DC;"><tr><td valign="top">
      <table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px">
        <tr><td style="color:#000000; font-family: 'Arial', sans-serif; font-weight:bold; font-size:14px; direction: ltr">
          This Message Is From an External Sender
        </td></tr>
        <tr><td style="color:#000000; font-weight:normal; font-family: 'Arial', sans-serif; font-size:12px; direction: ltr">
          This message came from outside your organization.
        </td></tr>

      </table>

    </td></tr></table>
  </td></tr></table>
<![endif]-->

<![if !((ie)|(mso))]>
  <div dir="ltr"  id="pfptBanneryps01fk" style="all: revert !important; display:block !important; text-align: left !important; margin:16px 0px 16px 0px !important; padding:8px 16px 8px 16px !important; border-radius: 4px !important; min-width: 200px !important; background-color: #D0D8DC !important; background-color: #D0D8DC; border-top: 4px solid #90a4ae !important; border-top: 4px solid #90a4ae;">
    <div id="pfptBanneryps01fk" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
      <div id="pfptBanneryps01fk" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-weight:bold !important; font-weight:bold; font-size:14px !important; line-height:18px !important; line-height:18px">
        This Message Is From an External Sender
      </div>
      <div id="pfptBanneryps01fk" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-weight:normal; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size:12px !important; line-height:18px !important; line-height:18px; margin-top:2px !important;">
This message came from outside your organization.
      </div>

    </div>

    <div style="clear: both !important; display: block !important; visibility: hidden !important; line-height: 0 !important; font-size: 0.01px !important; height: 0px"> </div>
  </div>
<![endif]>

<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerEnd</div>
<!-- Email Banner : END -->

<!-- BaNnErBlUrFlE-BoDy-end -->
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
  #pfptBanneryps01fk { all: revert !important; display: block !important; 
    visibility: visible !important; opacity: 1 !important; 
    background-color: #D0D8DC !important; 
    max-width: none !important; max-height: none !important }
  .pfptPrimaryButtonyps01fk:hover, .pfptPrimaryButtonyps01fk:focus {
    background-color: #b4c1c7 !important; }
  .pfptPrimaryButtonyps01fk:active {
    background-color: #90a4ae !important; }
</style>

<!-- BaNnErBlUrFlE-HeAdEr-end -->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:10.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="en-CN" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Thank you Satish!
<br>
<br>
I think I find the issue, the MKLROOT should be one of the subdirectory for the previous address.
<br>
<br>
Another question, do you know if PETSc can be configured with AMD AOCL <a href="https://urldefense.us/v3/__https://www.amd.com/en/developer/aocl.html__;!!G_uCfscf7eWS!dPM5PLRb-ePnG4HHZzs-Z7FUTkod4fvyBeYnsMy2Kg11pRg4gTAZ2D7J7w0Cx5UbezSeYC5tDcB2GqbdDP2VwiDJ-vwREa2E1Ns$">
https://www.amd.com/en/developer/aocl.html</a> as the BLAS and LAPACK.<br>
<br>
Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Yongzhong<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Satish Balay <balay.anl@fastmail.org><br>
<b>Date: </b>Tuesday, July 23, 2024 at 10:43</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black"> </span><span style="font-size:12.0pt;color:black">PM<br>
<b>To: </b>Yongzhong Li <yongzhong.li@mail.utoronto.ca><br>
<b>Cc: </b>petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov>, petsc-maint@mcs.anl.gov <petsc-maint@mcs.anl.gov><br>
<b>Subject: </b>Re: [petsc-users] MKL installation can't be used to configure PETSc<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt">[????????? balay.anl@fastmail.org ?????????
<a href="https://urldefense.us/v3/__https://aka.ms/LearnAboutSenderIdentification?**L5d__;Pz8_Pz8_Pz8_Pz8_JQ!!G_uCfscf7eWS!dPM5PLRb-ePnG4HHZzs-Z7FUTkod4fvyBeYnsMy2Kg11pRg4gTAZ2D7J7w0Cx5UbezSeYC5tDcB2GqbdDP2VwiDJ-vwRmphrP9U$">https://aka.ms/LearnAboutSenderIdentification?????????????]</a><br>
<br>
Are you sure you are providing the correct path?<br>
<br>
>>>><br>
--with-blaslapack-dir=/tool/pandora64/.package/oneMKL-2021.3/mkl<br>
<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/64<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/ia64<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/em64t<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/intel64<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/64<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/ia64<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/em64t<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/intel64<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/32<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/lib/ia32<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/32<br>
            MKL Path not found.. skipping: /tool/pandora64/.package/oneMKL-2021.3/mkl/ia32<br>
<br>
<<<<br>
<br>
Normally you should see something like the following [wrt the dir you specify to --with-blaslapack-dir]<br>
<br>
>>><br>
balay@cg:~$ env |grep MKL<br>
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<br>
balay@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<br>
/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<br>
/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<br>
<br>
Satish<br>
<br>
On Wed, 24 Jul 2024, Yongzhong Li wrote:<br>
<br>
> Dear PETSc developers,<br>
><br>
> Recently, when I configured the PETSc with blas/lapack provided by Intel MKL, I got the following error message,<br>
><br>
><br>
> [  1%] Performing configure step for 'external_petsc'<br>
> =============================================================================================<br>
>                          Configuring PETSc to compile on your system<br>
> =============================================================================================<br>
> =============================================================================================<br>
>                                      ***** WARNING *****<br>
>   Found environment variable: MAKEFLAGS=s. Ignoring it! Use "./configure<br>
>   MAKEFLAGS=$MAKEFLAGS" if you really want to use this value<br>
> =============================================================================================<br>
> TESTING: checkLib from config.packages.BlasLapack(config/BuildSystem/config/packages/BlasLapack.py:114)<br>
> *********************************************************************************************<br>
>            UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>
> ---------------------------------------------------------------------------------------------<br>
>   You set a value for --with-blaslapack-dir=<dir>, but<br>
>   /tool/pandora64/.package/oneMKL-2021.3/mkl cannot be used<br>
> *********************************************************************************************<br>
><br>
> make[2]: *** [CMakeFiles/external_petsc.dir/build.make:92: external/builds/petsc-3.21.0/src/external_petsc-stamp/external_petsc-configure] Error 1<br>
> make[1]: *** [CMakeFiles/Makefile2:114: CMakeFiles/external_petsc.dir/all] Error 2<br>
> make: *** [Makefile:91: all] Error 2<br>
><br>
> 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?<br>
><br>
> Thanks!<br>
> Yongzhong<br>
> -----------------------------------------------------------<br>
> Yongzhong Li<br>
> PhD student | Electromagnetics Group<br>
> Department of Electrical & Computer Engineering<br>
> University of Toronto<br>
> <a href="https://urldefense.us/v3/__http://www.modelics.org__;!!G_uCfscf7eWS!aa4LdUX0JV3i0ce3Jp20GLg521rd7L25vZSpFhCmlvTUN8EZFjfbk-IsfiTOD3IpCfXCB_zHA8nh1WMIkiHosbwZgv8PzmzPEec$">
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</a><br>
><br>
><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>