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

  • OMP_PLACES Mohamed Atef via Gcc
    • Re: OMP_PLACES Jakub Jelinek via Gcc

Reply via email to