public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* OMP_PLACES
@ 2022-05-28 20:48 Mohamed Atef
  2022-05-30 16:14 ` OMP_PLACES Jakub Jelinek
  0 siblings, 1 reply; 2+ messages in thread
From: Mohamed Atef @ 2022-05-28 20:48 UTC (permalink / raw)
  To: gcc, Jakub Jelinek

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, ....);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: OMP_PLACES
  2022-05-28 20:48 OMP_PLACES Mohamed Atef
@ 2022-05-30 16:14 ` Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2022-05-30 16:14 UTC (permalink / raw)
  To: Mohamed Atef; +Cc: gcc

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-30 16:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-28 20:48 OMP_PLACES Mohamed Atef
2022-05-30 16:14 ` OMP_PLACES Jakub Jelinek

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).