[petsc-users] Error compiling with cuda

Renato E Poli rpoli at utexas.edu
Sat Aug 2 13:34:30 CDT 2025


If I understand correctly, with gfotran I will be able to link to petsc
cuda-c++ , but I wont be able to use the fortran cuda interface directly
(so I wont be able to write my own gpu-accelerated fortran). Is that
correct?

On Sat, Aug 2, 2025, 13:25 Satish Balay <balay.anl at fastmail.org> wrote:

> On Sat, 2 Aug 2025, Renato E Poli wrote:
>
> > *>> And a recommendation to use gfortran instead of nvfortran*
> > The other application is using nvfortran, and now we are trying to link
> > PETSC to it.
> >
> > I guess I understood the main points.
> > I need to work on it a bit now and get a better idea of what is going on.
>
> petsc-3.22 should work with nvfortran.
>
> Fortran interface in petsc is being over-hauled (in 3.23, and future 3.24
> releases) requiring F2008 (and F2023?) features - that some of the older
> compilers don't support.
>
> [and older petsc releases might have other issues - say using latest cuda
> version, cmake version etc...]
>
> Satish
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250802/222d590d/attachment-0001.html>


More information about the petsc-users mailing list