public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Thomas Schwinge <thomas@codesourcery.com>
To: Kwok Cheung Yeung <kcy@codesourcery.com>
Cc: Catherine Moore <clm@codesourcery.com>, <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH, og9] Port OpenACC profiling interface to OG9
Date: Mon, 17 Jun 2019 17:24:00 -0000	[thread overview]
Message-ID: <yxfp8su086r0.fsf@hertz.schwinge.homeip.net> (raw)
In-Reply-To: <b9fdfd2d-fe3e-aaa0-9c96-61d7a0948a48@codesourcery.com>

Hi Kwok!

On Mon, 17 Jun 2019 14:27:46 +0100, Kwok Cheung Yeung <kcy@codesourcery.com> wrote:
> This is a straightforward port of the OpenACC profiling interface from 
> OG8 to OG9, with a few tweaks

Thanks for looking into this.

> to compensate for patches that have not 
> been carried over to OG9.

Conceptually ACK.  (I have not reviewed what's missing/got dropped.)

> I have also bundled in the profiling hooks and 
> documentation updates that have been added since the original patch in OG8.

ACK.

> Okay to push to openacc-gcc-9-branch?

What you probably didn't know (sorry!) is that trunk r271346,
<http://mid.mail-archive.com/yxfplfz4anys.fsf@hertz.schwinge.homeip.net>,
contains some changes that are not in the og8 code: code and
documentation improvements, TODOs resolved, etc.  It also doesn't contain
the actual 'acc_register_library' implementation, because that one needs
further work, as discussed before.

I think what would be best, is the following approach:

  - First, backport trunk r271346 to og9.

    That might not be completely trivial, because as you know, og9
    contains a number of "feature" commits that need to include changes
    related to the profiling code.  It's the question in which order to
    sequence patches -- whether these changes related to the profiling
    code are part of the individual "feature" commits, or they're part of
    a later "profiling" commit.  As og9 has been published with "feature"
    commits not containing any profiling bits, all these things will have
    to be in a later "profiling" commit.

    However, for upstreaming this into trunk later on, it will be
    beneficial to have the backported "profiling" commit as similar as
    possible to trunk r271346, so we shall live with some short-lived
    inconsistencies, maybe even a few testuite regressions, which then
    get resolved when you...

  - Second, on top of that, add the pieces of functionality (from the
    og8) version that are missing from the trunk r271346 backport.  Of
    course, remove all changes that would worsen the state, compared to
    what trunk r271346 already contains.

So, conceptually: a first commit to backport trunk r271346, then a second
commit containing a merger of a (temporary) revert of the first commit
followed by applying the patch you just posted.  Then, remove from the
second commit all changes that worsen the state, compared to what trunk
r271346 already contains.

Or, in other words: split the patch you just posted into two, where the
first one is as close as possible to a backport of trunk r271346, then
all other changes in a second commit.

Will that work?

I'll be happy to help review these changes, especially whether something
should be part of the second commit, or get dropped.


Grüße
 Thomas

  reply	other threads:[~2019-06-17 17:24 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-28 17:54 OpenACC 2.5 Profiling Interface (incomplete) Thomas Schwinge
2017-05-15  7:38 ` More OpenACC 2.5 Profiling Interface (was: OpenACC 2.5 Profiling Interface (incomplete)) Thomas Schwinge
2017-05-15 11:55   ` Documentation changes for OpenACC 2.5 Profiling Interface (was: More OpenACC 2.5 Profiling Interface) Thomas Schwinge
2018-02-22 11:23 ` [og7] Fix hang when running oacc exec with CUDA 9.0 nvprof Tom de Vries
2020-03-25 17:09   ` [og9] Fix og9 "Fix hang when running oacc exec with CUDA 9.0 nvprof" Thomas Schwinge
2020-03-26 16:46     ` [og9] Really fix " Thomas Schwinge
2020-03-27  7:06       ` Frederik Harwath
2020-07-13 15:29   ` [PATCH] libgomp: Fix hang when profiling OpenACC programs with CUDA 9.0 nvprof Kwok Cheung Yeung
2020-07-14 11:00     ` Thomas Schwinge
2018-11-12  4:32 ` OpenACC 2.5 Profiling Interface Thomas Schwinge
2018-12-04 13:13   ` Jakub Jelinek
2019-05-15 14:28     ` Thomas Schwinge
2019-05-16 15:22   ` OpenACC Profiling Interface: 'acc_register_library' (was: OpenACC 2.5 Profiling Interface) Thomas Schwinge
2019-05-16 15:54     ` Jakub Jelinek
2019-05-16 19:43       ` OpenACC Profiling Interface: 'acc_register_library' Thomas Schwinge
2019-05-17 19:19         ` [committed] OpenACC Profiling Interface (incomplete) Thomas Schwinge
2019-06-17 13:27           ` [PATCH, og9] Port OpenACC profiling interface to OG9 Kwok Cheung Yeung
2019-06-17 13:28             ` Kwok Cheung Yeung
2019-06-17 17:24               ` Thomas Schwinge [this message]
2019-06-24 19:37                 ` Kwok Cheung Yeung
2019-07-24 11:05                   ` Thomas Schwinge
2019-07-27  5:26                     ` Kwok Cheung Yeung
2021-07-27  9:33           ` [committed] OpenACC Profiling Interface (incomplete) 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=yxfp8su086r0.fsf@hertz.schwinge.homeip.net \
    --to=thomas@codesourcery.com \
    --cc=clm@codesourcery.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=kcy@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).