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 ranks got the exported variables. Additonnaly i ran interactively my test program without slurm on with just one MPI process on one of the node in our cluster. Tracing it then shows as well the fixed buffer size of 8kiB. So i guess there is something not working with setting of the runtime variable, may be not from io/unix.c but from runtime/environ.c where this variables should be set ? I am now testing with gcc11.2 that i modified and re-compile from source. Will send then the output trace Regards, Denis ________________________________ From: Harald Anlauf <anl...@gmx.de> Sent: Wednesday, February 23, 2022 10:38:20 PM To: Bertini, Denis Dr. Cc: fortran@gcc.gnu.org Subject: Re: Problem setting buffer size for gfortran ( v 11.2) 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 um 22:23 Uhr Von: "Bertini, Denis Dr." <d.bert...@gsi.de> An: "Harald Anlauf" <anl...@gmx.de> Cc: "fortran@gcc.gnu.org" <fortran@gcc.gnu.org> Betreff: Re: Problem setting buffer size for gfortran ( v 11.2) 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 singularity container? Best Denis ------------------------------------------------------------ From: Harald Anlauf <anl...@gmx.de> Sent: Wednesday, February 23, 2022 10:18:17 PM To: Bertini, Denis Dr. Cc: fortran@gcc.gnu.org Subject: Re: Problem setting buffer size for gfortran ( v 11.2) Hi Denis, if I'm reading the strace output correctly, you're running the app with gfortran-8 (too old) under singularity (virtualization software). I'm afraid you need to contact your vendor or system folks. Cheers, Harald Gesendet: Mittwoch, 23. Februar 2022 um 21:59 Uhr Von: "Bertini, Denis Dr." <d.bert...@gsi.de> An: "Harald Anlauf" <anl...@gmx.de>, "fortran@gcc.gnu.org" <fortran@gcc.gnu.org> Betreff: Re: Problem setting buffer size for gfortran ( v 11.2) Hi Harald, I do not know why the attachment was not sent with my email I try again Best Denis