From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 563C83858289 for ; Wed, 8 Mar 2023 14:58:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 563C83858289 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 58EF521A56; Wed, 8 Mar 2023 14:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1678287480; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+nPWJb6038j7KTtLOyHU5oSGaFgG4b81f39YF6QQQEo=; b=erbu+kTfYf5ar2SlUuyobKjsWDciAwmnNr46L3K6afJiltcwNchN7PBiE9WZHGeMjK/o0z avWKQ+es1HRvJhZH5JQ2C48egpE/YC/h8Jwc6PEsadL0SwS8yDIcWhXHinv6t/nntmaj1k +zEcUwajpLBq8PVqGOthpAMxnvqXfds= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1678287480; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+nPWJb6038j7KTtLOyHU5oSGaFgG4b81f39YF6QQQEo=; b=FWKrRJH6iIm4VLF+xnCEtucuYtNJYHbz7r0Fu7C3OMXvgyMRA1ClXZdALaoG5c7iojy6N/ SfuassmCz4RI/gDw== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 0234C2C141; Wed, 8 Mar 2023 14:57:59 +0000 (UTC) Date: Wed, 8 Mar 2023 14:57:59 +0000 (UTC) From: Richard Biener To: Paul Richard Thomas cc: Thomas Koenig , Steve Kargl , "fortran@gcc.gnu.org" Subject: Re: [Patch, fortran] PR37336 finalization In-Reply-To: Message-ID: References: <582085ac-0d07-a516-732d-e82e0a4e01c9@netcologne.de> User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_ASCII_DIVIDERS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 8 Mar 2023, Paul Richard Thomas wrote: > Hi All, > > I ran the polyhedron testsuite with the patched gfortran-13.0.1 and 7.4(as > used in the posted Linux test). The timings are comparable except for > rnflow.f90. > > As noted below, rnflow.f90 hangs with the unpatched mainline at -O3 but > runs successfully at -O2. > > I presume that this is a serious regression since it involves optimization? I believe it has undefined behavior (accessing array out of bounds). > Which component should I post it against? > > Regards > > Paul > > gfortran 13.0.1 with patch > Benchmark Compile Executable Ave Run Number Estim > Name (secs) (bytes) (secs) Repeats Err % > --------- ------- ---------- ------- ------- ------ > ac 0.00 55904 7.28 2 0.0550 > aermod 0.00 1149032 10.32 2 0.0242 > air 0.00 120224 3.57 2 0.3083 > capacita 0.00 110872 20.27 2 0.0765 > channel2 0.00 43928 98.23 2 0.2703 > doduc 0.00 190296 13.86 2 0.2453 > gas_dyn2 0.00 108176 96.77 2 0.1364 > fatigue2 0.00 90752 61.44 2 0.0618 > induct2 0.00 224992 57.71 2 0.0572 > linpk 0.00 47672 5.54 2 0.1806 > mp_prop_desi 0.00 52640 94.50 2 0.0079 > nf 0.00 64480 9.25 2 0.4053 > protein 0.00 136496 20.83 2 0.9096 > rnflow 0.00 181320 3417.15 2 99.8270**** > test_fpu2 0.00 126752 52.35 2 0.1691 > tfft2 0.00 60280 37.61 2 0.9387 > > Geometric Mean Execution Time = 32.72 seconds > ****rnflow hangs without patch as well. Seems to be a rather serious > regression. > gets stuck with -O3 in the loop starting at line 3566 in subroutine cptrf2 > > ================================================================================ > > gfortran7.4 > Benchmark Compile Executable Ave Run Number Estim > Name (secs) (bytes) (secs) Repeats Err % > --------- ------- ---------- ------- ------- ------ > ac 0.00 3612576 7.30 2 0.0205 > aermod 0.00 5204760 10.21 2 0.0784 > air 0.00 3829736 4.05 2 0.0988 > capacita 0.00 3672512 22.25 2 0.1506 > channel2 0.00 3663368 87.22 2 0.5767 > doduc 0.00 3840336 13.60 2 0.0221 > gas_dyn2 0.00 3673920 89.54 2 0.1106 > fatigue2 0.00 3691256 74.34 2 0.0921 > induct2 0.00 4062312 57.87 2 0.1348 > linpk 0.00 3591984 5.59 2 0.0358 > mp_prop_desi 0.00 3966920 93.99 2 0.0654 > nf 0.00 3622112 9.27 2 0.0324 > protein 0.00 3832280 22.10 2 0.1289 > rnflow 0.00 4129984 23.49 2 0.7449 > test_fpu2 0.00 3940944 53.29 2 0.2561 > tfft2 0.00 3622040 36.56 2 0.1026 > > Geometric Mean Execution Time = 24.33 seconds > -- Richard Biener SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg, Germany; GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman; HRB 36809 (AG Nuernberg)