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

2022-02-25 Thread Bertini, Denis Dr. via Fortran
Hi Harald, Yes i tried other values. It seems that the value set in the foreseen environment variable is just ignored. And always a buffer size of 8kiB is used, which is the default values for formatted I/O harcoded in libgfortran. The only way to change this value is editing and recompiling

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

2022-02-25 Thread Harald Anlauf via Fortran
Hi Denis, export GFORTRAN_UNFORMATTED_BUFFER_SIZE=1 export GFORTRAN_FORMATTED_BUFFER_SIZE=1 export GFORTRAN_UNBUFFERED_ALL=n From the output log indeed i got the correct env. variable as i set: GFORTRAN_FORMATTED_BUFFER_SIZE=1 But from strace output i got always write(3

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

2022-02-25 Thread Bertini, Denis Dr. via Fortran
Hi Harald I modified a little your test program to the following: >> program fio integer :: stat character(80) :: s integer, parameter:: nx = 256 integer, parameter:: ny = 256 integer, parameter:: nz = 256 i

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

2022-02-25 Thread Bertini, Denis Dr. via Fortran
Hi Tobias, So i use now in my submission script the option you were quoting i.e > srun --export=ALL which is actually the default as stated in the slurm documentation. Setting the following environment to change the buffer size in both formatted/unformatted I/O 😎 export GFORTRAN_FORMATTED