public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Mohamed Atef <mohamedatef1698@gmail.com>
Cc: gcc@gcc.gnu.org
Subject: Re: OMP_PLACES
Date: Mon, 30 May 2022 18:14:15 +0200	[thread overview]
Message-ID: <YpTtV7GRZi6gpw8B@tucnak> (raw)
In-Reply-To: <CAPFh8N+LNBf3vUnStxMPep5h-jB4LCnSFBSLLrSTB+f=U4_G4w@mail.gmail.com>

On Sat, May 28, 2022 at 10:48:30PM +0200, Mohamed Atef wrote:
> Hello,
>   if I want to dump elements of gomp_places_list
> in a string
> 
> gomp_affinity_print_place (gomp_places_list[i]);
> what does this function do ?
> I read its body, it has only one line
> (void) p;
> should I call it before sprintf (temp_buffer, ....);

libgomp has a directory hierarchy that allows overriding
generic implementations of some parts with other implementations
for selected targets, e.g. the generic implementation can be
a fallback and the specific doing something more advanced.

For affinity, libgomp/affinity.c is such a fallback implementation
that doesn't do anything useful, and libgomp/config/linux/affinity.c
is a Linux specific implementation.

I think for libgompd you want something similar, doesn't necessarily
need to be a *.c file, could be just ompd-affinity.h which is
overridden by config/linux/ompd-affinity.h.

	Jakub


      reply	other threads:[~2022-05-30 16:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-28 20:48 OMP_PLACES Mohamed Atef
2022-05-30 16:14 ` Jakub Jelinek [this message]

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=YpTtV7GRZi6gpw8B@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=mohamedatef1698@gmail.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).