Help (again) with fortran pointer and OpenACC

2023-08-30 Thread Patrick Begou via Fortran
Hi, I would like to ask some comments about a small piece of code that reflect many algorithms in a large application I try to move to openACC with gfortran. This code manage a pointer to a user defined type with an allocatable. I've no problem to allocate and work with this type on the cpu

Re: Help with fortran pointer ans OpenACC

2023-08-24 Thread Patrick Begou via Fortran
Begou via Fortran wrote: For several days I have some trouble with OpenACC offloading and fortran pointers. I'm testing with a very small peace of code to investigate but I do not progress for several days and I need your help. Could someone give me advices or a small explanation on what I have

Help with fortran pointer ans OpenACC

2023-08-23 Thread Patrick Begou via Fortran
Hi everyone! For several days I have some trouble with OpenACC offloading and fortran pointers. I'm testing with a very small peace of code to investigate but I do not progress for several days and I need your help. The attached code goal is just to initialize some data on the GPU and is

Re: (GCC) 13.0.1: internal compiler error

2023-04-25 Thread Patrick Begou via Fortran
. There is a devel/omp/gcc-12 branch you might want to try. I don't know how different that branch is wrt openacc. HTH, On Mon, 24 Apr 2023 19:39:15 +0200 Patrick Begou via Fortran wrote: Hi Harald as I said, it is a large, massively parallel fortran code: more than 700 files, some with several

Re: (GCC) 13.0.1: internal compiler error

2023-04-24 Thread Patrick Begou via Fortran
Hi Harald as I said, it is a large, massively parallel fortran code: more than 700 files, some with several thousands of lines. It could be difficult to create a small reproducer but I will try if the problem is not known as an other git branch of this code also create an internal error on

(GCC) 13.0.1: internal compiler error

2023-04-21 Thread Patrick Begou via Fortran
Hi, I have built this morning the latest gfortran from a git clone: GNU Fortran (GCC) 13.0.1 20230421 (prerelease) I'm trying this compiler on a large and complexe Fortran90 code with offloading using OpenACC. At this time: - code compiles with nvfortran and runs on A100 GPU. - code

Moving to submodule

2022-12-16 Thread Patrick Begou via Fortran
Hi, my goal is to move a large fortran90 modular code to fortran 2008 using the submodule concept. As I have nearly 400 files to modify I would like to know if a tool exist to automatically extract variables from fortran90 modules and build interfaces for subroutines and functions ? Before