<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>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="IT" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Dear PETSc users and developers,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">as per the title, I recently installed the base and HPC Intel OneApi toolkits on a machine running Ubuntu 20.04.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As you probably know, OneApi comes with the classical compilers (icc, icpc, ifort) and relative mpi wrappers (mpiicc, mpiicpc, mpiifort) as well as with the new LLVM based compilers (icx, icpx, ifx).</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My experience so far with PETSc on Linux has been without troubles using both gcc compilers and either Mpich or OpenMPI and Intel classical compilers and MPI.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, I have now troubles using the MPI wrappers of the new LLVM compilers as, in fact, there aren’t dedicated mpi wrappers for them. Instead, they can be used with certain flags for the classical wrappers:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">mpiicc -cc=icx</p>
<p class="MsoNormal">mpiicpc -cxx=icpx</p>
<p class="MsoNormal">mpiifort -fc=ifx</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The problem I have is that I have no idea how to pass them correctly to the configure and whatever comes after that.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Admittedly, I am just starting to use the new compilers, so I have no clue how I would use them in other projects as well.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I started with an alias in my .bash_aliases (which works for simple compilation tests from command line) but doesn’t with configure.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I also tried adding the flags to the COPTFLAGS, CXXOPTFLAGS and FOPTFLAGS but didn’t work as well.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Do you have any experience with the new Intel compilers and, in case, could you share hot to properly use them with MPI?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Paolo</p>
</div>
</body>
</html>