Hi Tobias

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.

Best

Denis

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

Hi,

On 24.02.22 08:57, Bertini, Denis Dr. via Fortran wrote:
> Additonnaly i ran interactively my test program without slurm on with just 
> one MPI process on

I think you either use Open MPI or MPICH. Can you try setting the environment 
variable
when invoking MPI by adding the -x or -env (-envlist, ...) option like in:

Open MPI
    mpirun -x GFORTRAN_UNFORMATTED_BUFFER_SIZE=1024000 ...

cf. https://www.open-mpi.org/doc/v1.8/man1/mpirun.1.php

or

MPICH:
    mpiexec -env GFORTRAN_UNFORMATTED_BUFFER_SIZE 1024000 ...

cf. https://www.mpich.org/static/docs/v3.1/www1/mpiexec.html

See linked man pages for details and additional environment-related options.

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