From: Paul Richard Thomas <paul.richard.thomas@gmail.com>
To: Richard Biener <rguenther@suse.de>, Tobias Burnus <burnus@net-b.de>
Cc: Thomas Koenig <tkoenig@netcologne.de>,
Steve Kargl <sgk@troutmask.apl.washington.edu>,
"fortran@gcc.gnu.org" <fortran@gcc.gnu.org>
Subject: Re: [Patch, fortran] PR37336 finalization
Date: Wed, 8 Mar 2023 12:27:32 +0000 [thread overview]
Message-ID: <CAGkQGiKLFu2xKNoxF3cr3PGp+sZ=VWM2bprYK2PvG0A0=Ynn3Q@mail.gmail.com> (raw)
In-Reply-To: <nycvar.YFH.7.77.849.2303080908290.18795@jbgna.fhfr.qr>
[-- Attachment #1: Type: text/plain, Size: 2931 bytes --]
Hi Richard,
Smart pointer applications really torture finalization. That's why Andrew
and Salvatore's help has been so much appreciated.
I haven't run the polyhedron suite for some little while and so I just
downloaded it. I ran into a significant problem with the harness. The
binary segfaulted before doing anything and the source appeared to be
geared towards Intel but I couldn't get it to compile even with ifort. I
replaced all the offending bits of code with standard calls and put the
tests on to cook. The posted linux tests were done with gcc-7.4 so I will
rerun the suite with that and compare the outcomes. So far I haven't seen
any problems. On the contrary, some invalid code nasties were picked up:
3586 | DO ij = 1 , 3
| 2
3587 | QUGii(ij) = 0.
3588 | QCOni(ij) = 0.
| 1
Warning: Array reference at (1) out of bounds (3 > 2) in loop beginning at
(2)
doduc.f90:3587:26:
3587 | QUGii(ij) = 0.
| ^
Warning: iteration 2 invokes undefined behavior
[-Waggressive-loop-optimizations]
doduc.f90:3586:16:
and
gas_dyn2.f90:435:21:
59 | SUBROUTINE KEEL(NODES, DX, RADIUS, RBOUND, VEL, DENS, IENER,
&
| 2
......
435 | SUBROUTINE KEEL(NODES, DX, RADIUS, RBOUND, VEL, DENS, IENER,
&
| 1
Warning: Shape mismatch in dimension 1 of argument 'dx' between (1) and (2)
The IEEE underflow and denormal errors are also flagged.
As soon as the runs are finished, I will post the results.
@Tobias Burnus <burnus@net-b.de> Thanks for the pointer to Octopus. I'll
give it a whirl tonight.
Cheers
Paul
On Wed, 8 Mar 2023 at 09:10, Richard Biener <rguenther@suse.de> wrote:
> On Wed, 8 Mar 2023, Thomas Koenig wrote:
>
> > On 08.03.23 09:14, Richard Biener wrote:
> > > While Fortran is not considered release critical it would be bad to
> > > break say the build of SPEC CPU 2017 or Polyhedron very late in the
> > > cycle. I'd lean towards postponing this to early stage1 and eventually
> > > backport it for GCC 13.2 if you would like this feature to be
> implemented
> > > for GCC 13.
> >
> > And now comes the problem - no Fortran maintanier has access to SPEC
> > 2017, as far as I know. The curse of closed-source benchmarks...
>
> :/
>
> But at least you can watch https://lnt.opensuse.org after-the-fact
>
> > How extensive is SPEC using finalization? My personal guess would be
> > that it is not used extensively, since gfortran's implementation is
> > pretty broken at the moment.
>
> I'd say it probably doesn't use it. But I was more worrying about
> unwanted side-effects on code _not_ using finalization.
>
> Do you know of any medium to large size Fortran code base that
> uses finalization?
>
> Richard.
>
--
"If you can't explain it simply, you don't understand it well enough" -
Albert Einstein
next prev parent reply other threads:[~2023-03-08 12:27 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 13:45 Paul Richard Thomas
2023-03-07 14:58 ` Thomas Koenig
2023-03-07 17:15 ` Steve Kargl
2023-03-08 7:32 ` Paul Richard Thomas
2023-03-08 8:05 ` Thomas Koenig
2023-03-08 8:14 ` Richard Biener
2023-03-08 8:55 ` Thomas Koenig
2023-03-08 9:10 ` Richard Biener
2023-03-08 12:27 ` Paul Richard Thomas [this message]
2023-03-08 10:28 ` Tobias Burnus
2023-03-08 9:14 ` Paul Richard Thomas
2023-03-08 9:21 ` Richard Biener
2023-03-08 14:55 ` Paul Richard Thomas
2023-03-08 14:57 ` Richard Biener
2023-03-08 21:35 ` Thomas Koenig
2023-03-09 7:13 ` Thomas Koenig
2023-03-09 8:32 ` Richard Biener
2023-03-09 8:18 ` Richard Biener
2023-03-09 12:43 ` Paul Richard Thomas
2023-03-09 17:30 ` Thomas Koenig
2023-03-10 3:56 ` Jerry D
2023-03-10 16:49 ` Paul Richard Thomas
2023-03-15 7:29 ` Paul Richard Thomas
2023-03-15 7:37 ` Richard Biener
2023-03-16 7:20 ` Paul Richard Thomas
2023-03-09 15:05 ` Steve Kargl
2023-03-08 15:12 ` Steve Kargl
2023-03-08 15:29 ` Andrew Benson
2023-03-08 16:29 ` Tobias Burnus
2023-03-08 17:12 ` Paul Richard Thomas
2023-06-02 13:42 ` Paul Richard Thomas
2023-06-03 5:50 ` Thomas Koenig
2023-06-03 7:32 ` Steve Kargl
2023-06-03 13:16 ` Paul Richard Thomas
2023-06-03 19:10 ` Harald Anlauf
2023-06-03 19:22 ` Thomas Koenig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGkQGiKLFu2xKNoxF3cr3PGp+sZ=VWM2bprYK2PvG0A0=Ynn3Q@mail.gmail.com' \
--to=paul.richard.thomas@gmail.com \
--cc=burnus@net-b.de \
--cc=fortran@gcc.gnu.org \
--cc=rguenther@suse.de \
--cc=sgk@troutmask.apl.washington.edu \
--cc=tkoenig@netcologne.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).