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_BUFFER_SIZE=10000
export GFORTRAN_UNFORMATTED_BUFFER_SIZE=10000
export GFORTRAN_UNBUFFERED_ALL=n

Does not work even on gcc/gfortran 11.2

If i set the same way some environment variables for openMPI,

it is working.

So this is not related to the forwarding of environment variables

with srun.


Are the variables set correct ?

Best,

Denis


________________________________
From: Tobias Burnus <tob...@codesourcery.com>
Sent: Thursday, February 24, 2022 9:20:26 AM
To: Bertini, Denis Dr.; Harald Anlauf
Cc: fortran@gcc.gnu.org
Subject: Re: Problem setting buffer size for gfortran ( v 11.2)

Hi Denis,

On 24.02.22 09:15, Bertini, Denis Dr. via Fortran wrote:
> I can try that but on our cluster we are bound to use
>    srun (slurm).
> Do you know how to use the same functionality with srun
> to set the environment variables.

I didn't – but the manual did: srun --export=...

See: https://slurm.schedmd.com/srun.html#OPT_export_1

Good luck,

Tobias

-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 
München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas 
Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht 
München, HRB 106955

Reply via email to