* Beginning OpenMP Threads
@ 2022-02-25 3:00 Mohamed Atef
2022-03-07 17:40 ` Martin Jambor
0 siblings, 1 reply; 3+ messages in thread
From: Mohamed Atef @ 2022-02-25 3:00 UTC (permalink / raw)
To: gcc
Hello everyone,
From OpenMP specs.
"The OpenMP implementation must execute ompd_bp_thread_begin at every
native-thread-begin and initial-thread-begin event. This execution occurs
before the thread starts
the execution of any OpenMP region"
"When terminating an OpenMP thread, the implementation executes
ompd_bp_thread_end."
are these team_start and team_end in team.c file?
Thanks
Mohamed
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Beginning OpenMP Threads
2022-02-25 3:00 Beginning OpenMP Threads Mohamed Atef
@ 2022-03-07 17:40 ` Martin Jambor
2022-03-07 17:57 ` Mohamed Atef
0 siblings, 1 reply; 3+ messages in thread
From: Martin Jambor @ 2022-03-07 17:40 UTC (permalink / raw)
To: Mohamed Atef; +Cc: gcc
Hi,
it's been a while since I had a serious look into libgomp...
On Fri, Feb 25 2022, Mohamed Atef via Gcc wrote:
> Hello everyone,
> From OpenMP specs.
> "The OpenMP implementation must execute ompd_bp_thread_begin at every
> native-thread-begin and initial-thread-begin event. This execution occurs
> before the thread starts
> the execution of any OpenMP region"
>
> "When terminating an OpenMP thread, the implementation executes
> ompd_bp_thread_end."
>
> are these team_start and team_end in team.c file?
...but - based on a rather quick look - while I think you correctly
tracked down that gomp_team_start is the place actually creating the
threads, I think that the OMPD implementation wants to execute the
ompd_bp_thread_begin function for each thread and by the native
(pthread) thread. And, as far as I can tell, that seems to be the
function gomp_thread_start. At the moment I cannot quite tell if the
end of the function would be a good place for the thread termination
event - or rather if it is sufficient and there may be others, I would
need to dig deeper. But perhaps this already help?
Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Beginning OpenMP Threads
2022-03-07 17:40 ` Martin Jambor
@ 2022-03-07 17:57 ` Mohamed Atef
0 siblings, 0 replies; 3+ messages in thread
From: Mohamed Atef @ 2022-03-07 17:57 UTC (permalink / raw)
To: Martin Jambor; +Cc: gcc
Hi,
Thanks a lot.
The good news is that by the end of this month I think we will finish most
of OMPD.
The remaining parts need OMPT support which is missing in GNU but all the
other functions work perfectly fine.
Finished work,
Initialization
Thread handles
ICVs
remaining work,
task handles
parallel region handles
Thanks
Mohamed
On Mon, Mar 7, 2022 at 7:40 PM Martin Jambor <mjambor@suse.cz> wrote:
> Hi,
>
> it's been a while since I had a serious look into libgomp...
>
> On Fri, Feb 25 2022, Mohamed Atef via Gcc wrote:
> > Hello everyone,
> > From OpenMP specs.
> > "The OpenMP implementation must execute ompd_bp_thread_begin at every
> > native-thread-begin and initial-thread-begin event. This execution occurs
> > before the thread starts
> > the execution of any OpenMP region"
> >
> > "When terminating an OpenMP thread, the implementation executes
> > ompd_bp_thread_end."
> >
> > are these team_start and team_end in team.c file?
>
> ...but - based on a rather quick look - while I think you correctly
> tracked down that gomp_team_start is the place actually creating the
> threads, I think that the OMPD implementation wants to execute the
> ompd_bp_thread_begin function for each thread and by the native
> (pthread) thread. And, as far as I can tell, that seems to be the
> function gomp_thread_start. At the moment I cannot quite tell if the
> end of the function would be a good place for the thread termination
> event - or rather if it is sufficient and there may be others, I would
> need to dig deeper. But perhaps this already help?
>
> Martin
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-07 17:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-25 3:00 Beginning OpenMP Threads Mohamed Atef
2022-03-07 17:40 ` Martin Jambor
2022-03-07 17:57 ` Mohamed Atef
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).