public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Thomas Schwinge <thomas@codesourcery.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: OpenACC 2.5 Profiling Interface
Date: Tue, 04 Dec 2018 13:13:00 -0000	[thread overview]
Message-ID: <20181204131349.GN12380@tucnak> (raw)
In-Reply-To: <yxfpwopivrv5.fsf@hertz.schwinge.homeip.net>

On Sun, Nov 11, 2018 at 10:31:42PM -0600, Thomas Schwinge wrote:
> On Tue, 28 Feb 2017 18:43:36 +0100, I wrote:
> > The 2.5 versions of the OpenACC standard added a new chapter "Profiling
> > Interface".
> 
> I'd like to get that into trunk.  It's not yet complete (that is, doesn't
> provide all the information specified), but it's very useful already, and
> the missing pieces can later be added incrementally.
> 
> Jakub, would you please especially review the non-OpenACC-specific
> changes here, including the libgomp ABI changes?
> 
> (Note that this patch doesn't apply on top of trunk.  I extracted it out
> of openacc-gcc-8-branch, plus additional changes, and it depends on a
> number of other pending patches.  Due to the many regions of code
> touched, there are a lot of "textual" conflicts when porting it to
> current trunk, but the "structure" will be the same.)

Seems rather expensive to me, especially with the dependence on
libbacktrace and the unconditional initialization of the profiling from the
library constructor.  Could e.g. libbacktrace or some libgomp plugin that is
linked against libbacktrace be dlopened only when apps ask for this stuff?

OpenMP 5 has a profiling API too (OMPT), there the rough plan for when it
will be implemented is that libgomp as the library will implement only the
absolute required minimum and perhaps have a variant library that is a
replacement for libgomp if more detailed instrumentation is needed.

	Jakub

  reply	other threads:[~2018-12-04 13:13 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 [this message]
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
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=20181204131349.GN12380@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --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).