<div dir="ltr"><div>It seems that the installer is the one choosing to use nvfortran instead of gfortran.</div><div><br></div><div>I am building a docker container (clean environment).</div><div>I simply install CUDA SDK from <a href="https://urldefense.us/v3/__https://developer.download.nvidia.com/hpc-sdk/25.5/nvhpc_2025_255_Linux_x86_64_cuda_12.9.tar.gz__;!!G_uCfscf7eWS!cBTymZpXcpFZ7BHpCGxn0ooq_STD1f9CioiFgRypIYNWg9lpwnmLpddrWk0-J-wQoeTw9Ipu2FPm037mQg_C2w$">https://developer.download.nvidia.com/hpc-sdk/25.5/nvhpc_2025_255_Linux_x86_64_cuda_12.9.tar.gz</a> , set paths and call petsc configure.</div><div><br></div><div></div><div>RUN cd petsc-3.23.5 &&\<br>    ./configure --prefix=/usr/local/petsc  --with-debugging=0  --with-mpi  --download-hdf5   --download-hypre  --with-blaslapack   --with-cuda && \<br>    make all && make install</div><div><br></div><div>Do you see any reason for using the wrong compiler?<br></div><div><br></div><div>Renato<br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, Aug 2, 2025 at 12:28 AM 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">NVFORTRAN (based on flang-17) does not support some F2008 features that are required here (flang-19+ should work)<br>
<br>
Suggest using gfortran instead.<br>
<br>
Satish<br>
<br>
On Fri, 1 Aug 2025, Renato E Poli wrote:<br>
<br>
>  Hi,<br>
> <br>
> I see the error below when compiling with --with-cuda.<br>
> <br>
> Any suggestion?<br>
> <br>
> <br>
>          CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/inode2.o<br>
>          CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/aijperm/aijperm.o<br>
>          CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/mattransposematmult.o<br>
>          CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/matptap.o<br>
>          CC arch-linux-c-opt/obj/src/mat/impls/aij/seq/matrart.o<br>
>          FC arch-linux-c-opt/obj/src/sys/ftn-mod/petscsysmod.o<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 6)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 18)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 30)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 42)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 54)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 65)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 76)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 88)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 100)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 112)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 124)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 136)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 148)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscsys.h: 160)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscviewer.h: 6)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscviewer.h:<br>
> 17)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscoptions.h:<br>
> 6)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscoptions.h:<br>
> 18)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscoptions.h:<br>
> 30)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petsclog.h: 5)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petsclog.h: 17)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petsclog.h: 29)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscdevice.h: 6)<br>
> NVFORTRAN-S-0034-Syntax error at or near end of line<br>
> (/opt/src/petsc-3.23.5/arch-linux-c-opt/include/../ftn/sys/petscdevice.h:<br>
> 17)<br>
>   0 inform,   0 warnings,  24 severes, 0 fatal for petscsysdef<br>
> <br>
<br>
</blockquote></div>