public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Thomas Schwinge <thomas@codesourcery.com>
To: Nathan Sidwell <nathan@codesourcery.com>,
	Bernd Schmidt	<bschmidt@redhat.com>,
	Jakub Jelinek <jakub@redhat.com>,	<gcc-patches@gcc.gnu.org>
Subject: Re: libgomp: Make GCC 5 OpenACC offloading executables work
Date: Wed, 11 May 2016 16:02:00 -0000	[thread overview]
Message-ID: <874ma4wpk7.fsf@hertz.schwinge.homeip.net> (raw)
In-Reply-To: <6bc2d58c-063d-347a-3b87-4c94a066d936@acm.org>

Hi!

On Wed, 11 May 2016 11:38:39 -0400, Nathan Sidwell <nathan@acm.org> wrote:
> On 05/11/16 10:22, Bernd Schmidt wrote:
> > On 05/11/2016 03:46 PM, Thomas Schwinge wrote:
> >>> What we now got, doesn't work, for several reasons.  GCC 5 OpenACC
> >>> offloading executables will just run into SIGSEGV.
> >
> > I'm tempted to say, let's just wait until someone actually reports that in
> > bugzilla. Offloading in gcc-5 was broken enough that I expect no one was
> > actually using it. There's really very little point in carrying compatibility
> > crud around.
> 
> I agree.  This would simply be enabling a poorly performing binary, rather than 
> encouraging a shiny new one.

I conceptually agree to that.  (If we're serious about that, then we can
remove more code, such as the legacy libgomp entry point itself -- a
"missing symbol: [...]" is still vaguely better than a SIGSEGV.)  Yet,
what I fixed here, is just what Jakub and Nathan agreed upon in
<http://news.gmane.org/find-root.php?message_id=%3C20150924084034.GC1847%40tucnak.redhat.com%3E>:
"GCC 5 compiled offloaded OpenACC/PTX code will always do host fallback".
Currently such code will always result in a SIGSEGV, which the patch
fixes.  (And, given that we now have this patch, it seems "unfair" to
"wait until someone actually reports that in bugzilla".)  Another option,
instead of having such legacy entry pointw do host fallback, is to
instead call gomp_fatal with a message like "re-compile your code with a
newer GCC version".


Grüße
 Thomas

  reply	other threads:[~2016-05-11 16:02 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-25 13:40 Openacc launch API Nathan Sidwell
2015-08-28 17:30 ` Nathan Sidwell
2015-08-28 18:07   ` Jakub Jelinek
2015-08-28 19:50     ` Nathan Sidwell
2015-09-07 13:09 ` Nathan Sidwell
2015-09-11 15:59   ` Nathan Sidwell
2015-09-16 20:59     ` Nathan Sidwell
2015-09-17  9:46 ` Bernd Schmidt
2015-09-17 13:24   ` Nathan Sidwell
2015-09-17 14:43   ` Nathan Sidwell
2015-09-18  9:13     ` Bernd Schmidt
2015-09-18 18:56       ` Nathan Sidwell
2015-09-24  9:28       ` Jakub Jelinek
2015-09-24  9:58         ` Bernd Schmidt
2015-09-24 10:28           ` Jakub Jelinek
2015-09-24 10:41             ` Bernd Schmidt
2015-09-28 21:20         ` Nathan Sidwell
2016-04-12 13:17           ` libgomp external ABI prototypes maintenance (was: Openacc launch API) Thomas Schwinge
2016-04-20 11:35           ` libgomp: Make GCC 5 OpenACC offloading executables work " Thomas Schwinge
2016-05-11 13:46             ` libgomp: Make GCC 5 OpenACC offloading executables work Thomas Schwinge
2016-05-11 14:22               ` Bernd Schmidt
2016-05-11 15:38                 ` Nathan Sidwell
2016-05-11 16:02                   ` Thomas Schwinge [this message]
2016-05-12  9:21                     ` Bernd Schmidt
2016-05-12 15:35                     ` Nathan Sidwell
2015-09-21 16:30     ` Openacc launch API Nathan Sidwell
2015-09-30 12:42 ` Matthias Klose
2015-09-30 12:45   ` Bernd Schmidt
2015-09-30 12:48     ` Matthias Klose
2015-09-30 13:05   ` Nathan Sidwell
2015-09-30 13:27 JIT breakage after last builtin-types change Ulrich Drepper
2015-09-30 13:27 ` Jakub Jelinek
2015-09-30 14:48   ` Ulrich Drepper
2015-09-30 15:50     ` 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=874ma4wpk7.fsf@hertz.schwinge.homeip.net \
    --to=thomas@codesourcery.com \
    --cc=bschmidt@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=nathan@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).