<div dir="ltr"><div><i>>> And a recommendation to use gfortran instead of nvfortran</i></div><div>The other application is using nvfortran, and now we are trying to link PETSC to it.</div><div><br></div>I guess I understood the main points.<div>I need to work on it a bit now and get a better idea of what is going on.</div><div><br></div><div>Thank you!</div><div>Renato</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, Aug 2, 2025 at 1:04 PM Satish Balay <<a href="mailto:balay.anl@fastmail.org">balay.anl@fastmail.org</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">On Sat, 2 Aug 2025, Stefano Zampini wrote:<br>
<br>
> NVIDIA ships OpenMPI. You can select the FORTRAN compiler by using the<br>
> OMPI_FC environment variable, see<br>
> <a href="https://urldefense.us/v3/__https://docs.open-mpi.org/en/v5.0.x/building-apps/customizing-wrappers.html__;!!G_uCfscf7eWS!dVGG_CfOVumpO5kAMWVbjzj4d6nRX1gwuaGnbv41cwClu5AMW_lX90wMUOZkeZwnbrCat53pFti0ckjLxs7nQJzi0CZkLW4$" rel="noreferrer" target="_blank">https://urldefense.us/v3/__https://docs.open-mpi.org/en/v5.0.x/building-apps/customizing-wrappers.html__;!!G_uCfscf7eWS!dVGG_CfOVumpO5kAMWVbjzj4d6nRX1gwuaGnbv41cwClu5AMW_lX90wMUOZkeZwnbrCat53pFti0ckjLxs7nQJzi0CZkLW4$</a> <br>
<br>
One potential issue with switching fortran compiler [as mentioned in the above doc] - is fortran modules built by one compiler (nvfortran) - say mpi.mod, won't be usable from the other (gfortran).<br>
<br>
Satish<br>
</blockquote></div>