From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lxmtout1.gsi.de (lxmtout1.gsi.de [140.181.3.111]) by sourceware.org (Postfix) with ESMTPS id DEEA9385841F for ; Thu, 24 Feb 2022 07:57:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DEEA9385841F Received: from localhost (localhost [127.0.0.1]) by lxmtout1.gsi.de (Postfix) with ESMTP id B6CD32051045; Thu, 24 Feb 2022 08:57:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at lxmtout1.gsi.de Received: from lxmtout1.gsi.de ([127.0.0.1]) by localhost (lxmtout1.gsi.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 96jSLDaV296S; Thu, 24 Feb 2022 08:57:27 +0100 (CET) Received: from srvex1.campus.gsi.de (unknown [10.10.4.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by lxmtout1.gsi.de (Postfix) with ESMTPS id 9F4952051043; Thu, 24 Feb 2022 08:57:27 +0100 (CET) Received: from srvex1.Campus.gsi.de (10.10.4.11) by srvex1.campus.gsi.de (10.10.4.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.18; Thu, 24 Feb 2022 08:57:27 +0100 Received: from srvex1.Campus.gsi.de ([fe80::d6d:62f8:8c5f:1743]) by srvex1.campus.gsi.de ([fe80::d6d:62f8:8c5f:1743%21]) with mapi id 15.01.2375.018; Thu, 24 Feb 2022 08:57:27 +0100 From: "Bertini, Denis Dr." To: Harald Anlauf CC: "fortran@gcc.gnu.org" Subject: Re: Problem setting buffer size for gfortran ( v 11.2) Thread-Topic: Problem setting buffer size for gfortran ( v 11.2) Thread-Index: AQHYKOLdPl2KSeF2m0iQ/yc4UvrsIayhlNc7gAAJaLX///T3gIAAET0D///0XQCAALtSUg== Date: Thu, 24 Feb 2022 07:57:27 +0000 Message-ID: References: <2916ad84-bfbe-757b-290e-61d9c5805367@gmx.de> <99fe8038e55242b1bc4e7792ff0d7777@gsi.de> , In-Reply-To: Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [140.181.3.12] MIME-Version: 1.0 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, HTML_MESSAGE, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2022 07:57:32 -0000 Hi Harald, Good point. I export both environment variables export GFORTRAN_UNFORMATTED_BUFFER_SIZE=3D1024000 export GFORTRAN_UNBUFFERED_ALL=3Dn 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 varia= ble, 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 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." An: "Harald Anlauf" Cc: "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 Mi= B and it works. What do you mean by vendor? Do you think the problem could be linked to running fortran within singular= ity container? Best Denis ------------------------------------------------------------ From: Harald Anlauf 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." An: "Harald Anlauf" , "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