Code stack trace when a kernel fails

2024-01-15 Thread Patrick Begou
Hi Fortran users, working on a large Fortran code with gcc13 and OpenACC offloading I would like to have a stack trace when a kernel fails with an error in libgomp. Just to locate where this kernel was launched in the code. When the code crash, gdb always returns " No stack." and debugging i

Building a gcc RPM

2024-09-21 Thread Patrick Begou
Hi all, this is a marginal question but I would like to build a rpm package of gnu compilers (gcc, g++ and gfortran) built from the git repo to propagate the latest version on my cluster nodes. My goal is to deploy in /opt/GCC14/compilers/14.2.0 (as under /opt/GCC14 I will have to deploy also

Gnu offloading and tracking kernels execution

2025-01-08 Thread Patrick Begou
Hi and best wishes to all for this new year. I would like to know if there is a way to track kernel execution at run time when offloading with openMP target in gfortran 14 (Nvidia GPU). I mean identifying the kernel (file and line number), the amount of data transferts, the time spent in the

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 t

(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 compil

Re: (GCC) 13.0.1: internal compiler error

2023-04-24 Thread Patrick Begou via Fortran
with the status of the OpenACC implementation. Thanks, Harald Am 21.04.23 um 17:13 schrieb Patrick Begou: 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

Re: (GCC) 13.0.1: internal compiler error

2023-04-25 Thread Patrick Begou via Fortran
etter. 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 wi

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 rep

Re: Help with fortran pointer ans OpenACC

2023-08-24 Thread Patrick Begou via Fortran
o GNU software is limited to these tests and reports with small test-cases from a large scientific code that is expected to run on most GPU with various compilers. Thanks again for your help and detailed explanation Patrick Le 23/08/2023 à 13:41, Tobias Burnus a écrit : Hi, On 23.08.23 12:19, Pa

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