-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsec_settings.tex
27 lines (22 loc) · 1014 Bytes
/
sec_settings.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
\section{Address Space and Thread Settings}
The functions \verb|ompd_get_num_procs| and
\verb|ompd_get_thread_limit| are third-party versions of the OpenMP
runtime functions \verb|omp_get_num_procs| and \verb|omp_get_thread_limit|.
\begin{quote}
\begin{lstlisting}
ompd_rc_t ompd_get_num_procs (
ompd_address_space_handle_t *handle, /* IN */
ompd_tword_t *val /* OUT */
);
ompd_rc_t ompd_get_thread_limit (
ompd_address_space_handle_t *handle, /* IN */
ompd_tword_t *val /* OUT */
);
\end{lstlisting}
\end{quote}
The \verb|ompd_get_num_procs| function returns the number of
processors available to the device associated with the address space
\verb|handle| in \verb|*val|.
The \verb|ompd_get_thread_limit| function returns the maximum number
of OpenMP threads available on the device associated with the address
space \verb|handle| in \verb|*val|.