<div dir="ltr">You are getting a "-loopopt=0" added to your link line.<div>No idea what that is or where it comes from.<br><div>I don't see it in our repo.</div><div>Does this come from your environment somehow? <a href="https://dl.acm.org/doi/abs/10.1145/3493229.3493301">https://dl.acm.org/doi/abs/10.1145/3493229.3493301</a></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 3, 2022 at 9:20 AM Paolo Lampitella <<a href="mailto:paololampitella@hotmail.com">paololampitella@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg471576241362314424">
<div lang="IT" style="overflow-wrap: break-word;">
<div class="m_332406502692284454WordSection1">
<p class="MsoNormal">Hi Mark,</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">thank you very much, problem solved!</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I was indeed making confusion between OPTFLAGS and FLAGS.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Now, I know that this is probably not the place for this but, as I still owe you a configure.log, what happened next is that I added hypre to the previous configuration (now working) and I had problems again in configure (log file attached).
If I remove “--download-hypre” from the configure command, as I said, everything works as expected. This also worked with the intel classical compilers (that is, if I remove again the CFLAGS, CXXFLAGS and FFLAGS options that fixed my configure without hypre).</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My catch here is that HYPRE seems to interpret the C/CXX compilers as GNU (instead of intel), and later fails in linking C with Fortran.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I don’t actually need Hypre for now, but if you have any clue on where to look next, that would be helpful</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks again</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Paolo</p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><b>Da: </b><a href="mailto:mfadams@lbl.gov" target="_blank">Mark Adams</a><br>
<b>Inviato: </b>lunedì 3 ottobre 2022 13:20<br>
<b>A: </b><a href="mailto:paololampitella@hotmail.com" target="_blank">Paolo Lampitella</a><br>
<b>Cc: </b><a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a><br>
<b>Oggetto: </b>Re: [petsc-users] How to use Intel OneApi mpi wrappers on Linux</p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Paolo,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">You can use things like this in your configure file to set compilers and options.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">And you want to send us your configure.log file if it fails.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Mark<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"> '--with-cc=gcc-11',<br>
'--with-cxx=g++-11',<br>
'--with-fc=gfortran-11',<br>
'CFLAGS=-g',<br>
'CXXFLAGS=-g',<br>
'COPTFLAGS=-O0',<br>
'CXXOPTFLAGS=-O0',<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Oct 3, 2022 at 5:43 AM Paolo Lampitella <<a href="mailto:paololampitella@hotmail.com" target="_blank">paololampitella@hotmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">
Dear PETSc users and developers,</p>
<p class="MsoNormal" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
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" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
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" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
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" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
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" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
mpiicc -cc=icx</p>
<p class="MsoNormal" style="margin-left:4.8pt">
mpiicpc -cxx=icpx</p>
<p class="MsoNormal" style="margin-left:4.8pt">
mpiifort -fc=ifx</p>
<p class="MsoNormal" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
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" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
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" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
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" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
I also tried adding the flags to the COPTFLAGS, CXXOPTFLAGS and FOPTFLAGS but didn’t work as well.</p>
<p class="MsoNormal" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
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" style="margin-left:4.8pt">
</p>
<p class="MsoNormal" style="margin-left:4.8pt">
Thanks</p>
<p class="MsoNormal" style="margin-left:4.8pt">
</p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:4.8pt">
Paolo</p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></blockquote></div>