-
Notifications
You must be signed in to change notification settings - Fork 0
/
sec_par_region_inquiries.tex
59 lines (48 loc) · 1.79 KB
/
sec_par_region_inquiries.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
\section{Parallel Region Inquiries}
We describe OMPD functions to perform inquiries about parallel regions.
\subsection{Parallel Region Settings}
\paragraph{Determine the number of threads associated with a parallel region.}
\begin{quote}
\begin{lstlisting}
ompd_rc_t ompd_get_num_threads (
ompd_parallel_handle_t *parallel_handle, /* IN */
ompd_tword_t *val /* OUT */
);
\end{lstlisting}
\end{quote}
\labeldef{get-num-threads:def}
\paragraph{Determine the nesting depth of a particular parallel region.}
\begin{quote}
\begin{lstlisting}
ompd_rc_t ompd_get_level (
ompd_task_handle_t *task_handle, /* IN */
ompd_tword_t *val /* OUT */
);
\end{lstlisting}%
\end{quote}
\labeldef{get-level:def}
\paragraph{Determine the number of enclosing parallel regions.}
\verb|ompd_get_active_level| returns the number of nested, active
parallel regions enclosing the parallel region specified by its handle.
\begin{quote}
\begin{lstlisting}
ompd_rc_t ompd_get_active_level (
ompd_task_handle_t *task_handle, /* IN */
ompd_tword_t *val /* OUT */
);
\end{lstlisting}
\end{quote}
\labeldef{get-active-level:def}
\subsection{Parallel Function Entry Point}
The \texttt{ompd\_get\_parallel\_function} returns the
entry point of the code that corresponds to the body of
the parallel construct.
\begin{quote}
\begin{lstlisting}
ompd_rd_t ompd_get_parallel_function (
ompd_parallel_handle_t *parallel_handle, /* IN */
ompd_address_t *entry_point /* OUT */
);
\end{lstlisting}
\end{quote}
\labeldef{get-parallel-function:def}