Problem setting buffer size for gfortran ( v 11.2)

2022-02-23 Thread Bertini, Denis Dr. via Fortran
Hi Investigating some sporadical performance drop when using Fortran IO on our Lustre shared file system, we realized that the buffer size used as default by the gnu fortran compiler is 8 kiB only. We wanted to change this default and according to the documentation, one has just to set the envir

Re: Problem setting buffer size for gfortran ( v 11.2)

2022-02-23 Thread Harald Anlauf via Fortran
Hi Denis, Am 23.02.22 um 17:10 schrieb Bertini, Denis Dr. via Fortran: Hi Investigating some sporadical performance drop when using Fortran IO on our Lustre shared file system, we realized that the buffer size used as default by the gnu fortran compiler is 8 kiB only. We wanted to change this

Re: Problem setting buffer size for gfortran ( v 11.2)

2022-02-23 Thread Bertini, Denis Dr. via Fortran
Hi Harald, In attachment you will find a typical strace output when running with gfortran8 on lustre filsystem. As i said for gfortran version 8.x, 10.x, 11.2 setting the runtime env. variable to change buffer size did not work for me as you could see in the strace output. You could also see

Re: Problem setting buffer size for gfortran ( v 11.2)

2022-02-23 Thread Harald Anlauf via Fortran
Hi Denis, Am 23.02.22 um 21:28 schrieb Bertini, Denis Dr. via Fortran: Hi Harald, In attachment you will find a typical strace output when running with gfortran8 on lustre filsystem. unfortunately I do not see any attachment to your mail. Note: GFORTRAN_FORMATTED_BUFFER_SIZE & friends was a

Re: Problem setting buffer size for gfortran ( v 11.2)

2022-02-23 Thread Bertini, Denis Dr. via Fortran
Hi Harald, I ran also the same with gfortran v11.2. together with singularity and did not work as well. Then i change the defintion of the buffer size in unix.c to default at 1 MiB and it works. What do you mean by vendor? Do you think the problem could be linked to running fortran within sin

Re: Problem setting buffer size for gfortran ( v 11.2)

2022-02-23 Thread Harald Anlauf via Fortran
Hi Denis, if editing of unix.c works: is it possible that you either misspelled the name of the environment variable, forgot to export it, or if you are running under MPI, you need to make sure that the variable is MPI-exported to all ranks? Cheers, Harald   Gesendet: Mittwoch, 23. Februar 2022

[PATCH] PR fortran/84519 - [F2018] STOP and ERROR STOP statements with QUIET specifier

2022-02-23 Thread Harald Anlauf via Fortran
Dear Fortranners, Fortran 2018 added a QUIET= specifier to STOP and ERROR STOP statements. Janne already implemented the library side code four (4!) years ago, but so far the frontend implementation was missing. Furthermore, F2018 allows for non-default-integer stopcode expressions (finally!). T

*Ping* [PATCH] PR fortran/104573 - ICE in resolve_structure_cons, at fortran/resolve.cc:1299

2022-02-23 Thread Harald Anlauf via Fortran
Am 16.02.22 um 22:20 schrieb Harald Anlauf via Gcc-patches: Dear Fortranners, while we detect invalid uses of type(*), we may run into other issues later when the declared variable is used, leading to an ICE due to a NULL pointer dereference. This is demonstrated by Gerhard's testcase. Steve a

Re: [PATCH] PR fortran/84519 - [F2018] STOP and ERROR STOP statements with QUIET specifier

2022-02-23 Thread Jerry D via Fortran
On 2/23/22 2:21 PM, Harald Anlauf via Fortran wrote: Dear Fortranners, Fortran 2018 added a QUIET= specifier to STOP and ERROR STOP statements. Janne already implemented the library side code four (4!) years ago, but so far the frontend implementation was missing. Furthermore, F2018 allows for

Re: Problem setting buffer size for gfortran ( v 11.2)

2022-02-23 Thread Bertini, Denis Dr. via Fortran
Hi Harald, Good point. I export both environment variables export GFORTRAN_UNFORMATTED_BUFFER_SIZE=1024000 export GFORTRAN_UNBUFFERED_ALL=n directly in the script wich is used within the sbatch main submit script. I added ( in case ) the export also in my .bashrc profile. So i guess all ra