mimicking gomp_thead(void) for OMPD-API implementation

2022-06-02 Thread Ahmed Sayed Mousse via Gcc
Hi everyone, To implement the function ompd_get_thread_handle (…) from the OMPD API. I need to get the gomp_thread struct using thread context and address space context and in order to do that I want to apply the functionality of/mimic gomp_thread(void) from lipgomp.h using callba

FW: ompd_get_thread_id in OMPD implementation

2022-04-08 Thread Ahmed Sayed Mousse via Gcc
Sorry for the late reply. I did check gomp_thread_self but I'm still not sure about what I should do, maybe because I lack experience/knowledge. Here is where my thinking is going right now and I hope you tell me if I'm wrong. in gomp_thread_to_pthread_t there are 4 possible outputs 1 - if LIBGOMP

ompd_get_thread_id() in OMPD implementation

2022-03-25 Thread Ahmed Sayed Mousse via Gcc
Hi everyone, I was doing a research to help me implement the function “ompd_get_thread_id” from the OpenMP API specification under section 20.5.5.5. In this function I need to return a native thread identifier and from research I found that it’s a “pthread_t” handle which exists inside a struct