From: Jerry D <jvdelisle2@gmail.com>
To: Thomas Schwinge <thomas@codesourcery.com>,
Richard Biener <richard.guenther@gmail.com>,
Tom de Vries <tdevries@suse.de>,
gcc-patches@gcc.gnu.org
Cc: Janne Blomqvist <blomqvist.janne@gmail.com>,
fortran@gcc.gnu.org, Alexander Monakov <amonakov@ispras.ru>
Subject: Re: [PING] nvptx: '-mframe-malloc-threshold', '-Wframe-malloc-threshold' (was: Handling of large stack objects in GPU code generation -- maybe transform into heap allocation?)
Date: Wed, 11 Jan 2023 18:46:11 -0800 [thread overview]
Message-ID: <e5357e51-996c-642b-245c-4b79d83a2d6e@gmail.com> (raw)
In-Reply-To: <87cz7ll1hh.fsf@euler.schwinge.homeip.net>
On 1/11/23 4:06 AM, Thomas Schwinge wrote:
> Hi!
>
> Ping -- the '-mframe-malloc-threshold' idea, at least.
>
> Note that while this issue originally did pop up for Fortran I/O, it's
> likewise relevant for other functions that maintain big frames, for
> example in newlib:
>
> libc/string/libc_a-memmem.o:.local .align 16 .b8 %frame_ar[2064];
> libc/string/libc_a-strcasestr.o:.local .align 16 .b8 %frame_ar[2064];
> libc/string/libc_a-strstr.o:.local .align 16 .b8 %frame_ar[2064];
> libm/math/libm_a-k_rem_pio2.o:.local .align 16 .b8 %frame_ar[560];
>
> Therefore a generic solution (or, workaround if you'd like) does seem
> appropriate.
>
---snip ---
AS a gfortranner I have to at least say anyone doing fortran I/O on a
GPU is nuts.
With that said, a configurable option to address the broader issue makes
sense. Perhaps the default threshold should be whatever it is now and if
someone has a real situation where it is needed, they can adjust.
Regards,
Jerry
next prev parent reply other threads:[~2023-01-12 2:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ae825c453f484ffd99c9be34af726089@mentor.com>
[not found] ` <87mtaigz3l.fsf@dem-tschwing-1.ger.mentorg.com>
2022-11-11 14:12 ` Handling of large stack objects in GPU code generation -- maybe transform into heap allocation? Thomas Schwinge
2022-11-11 14:35 ` Richard Biener
2022-12-23 14:08 ` nvptx: '-mframe-malloc-threshold', '-Wframe-malloc-threshold' (was: Handling of large stack objects in GPU code generation -- maybe transform into heap allocation?) Thomas Schwinge
2022-12-23 21:23 ` Jerry D
2023-01-11 12:06 ` [PING] " Thomas Schwinge
2023-01-12 2:46 ` Jerry D [this message]
2022-11-11 14:38 ` Handling of large stack objects in GPU code generation -- maybe transform into heap allocation? Janne Blomqvist
2023-01-20 21:04 ` nvptx, libgcc: Stub unwinding implementation Thomas Schwinge
2023-01-20 21:16 ` nvptx, libgfortran: Switch out of "minimal" mode Thomas Schwinge
2023-01-20 22:10 ` Thomas Koenig
2023-01-24 9:37 ` Update 'libgomp/libgomp.texi' for 'nvptx, libgfortran: Switch out of "minimal" mode' (was: nvptx, libgfortran: Switch out of "minimal" mode) Thomas Schwinge
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=e5357e51-996c-642b-245c-4b79d83a2d6e@gmail.com \
--to=jvdelisle2@gmail.com \
--cc=amonakov@ispras.ru \
--cc=blomqvist.janne@gmail.com \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.guenther@gmail.com \
--cc=tdevries@suse.de \
--cc=thomas@codesourcery.com \
/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).