[petsc-users] Error compiling with cuda

Satish Balay balay.anl at fastmail.org
Sat Aug 2 13:04:31 CDT 2025


On Sat, 2 Aug 2025, Stefano Zampini wrote:

> NVIDIA ships OpenMPI. You can select the FORTRAN compiler by using the
> OMPI_FC environment variable, see
> https://urldefense.us/v3/__https://docs.open-mpi.org/en/v5.0.x/building-apps/customizing-wrappers.html__;!!G_uCfscf7eWS!dVGG_CfOVumpO5kAMWVbjzj4d6nRX1gwuaGnbv41cwClu5AMW_lX90wMUOZkeZwnbrCat53pFti0ckjLxs7nQJzi0CZkLW4$ 

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).

Satish


More information about the petsc-users mailing list