-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecapitulando.tex
More file actions
25 lines (22 loc) · 1.13 KB
/
Copy pathrecapitulando.tex
File metadata and controls
25 lines (22 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
\section{Recapitulando}
%5.6.1
\begin{frame}[fragile]{Recapitulando sobre OpenMP}
\begin{itemize}
\item Inserção do cabeçalho {\tt omp.h}
\item Forma de uso \mintinline{C}{#pragma omp <diretivas>}
\end{itemize}
\pause
\begin{table}
\begin{tabular}{l|l}
\hline
\textbf{Principais Diretivas} & \textbf{Cláusula de Partilha de Dados} \\ \hline
{\tt parallel } & {\tt default(shared | none) } \\
{\tt num\_threads($<$inteiro$>$)} & {\tt shared($<$lista\_de\_variaveis$>$) } \\
{\tt parallel for } & {\tt private($<$lista\_de\_variaveis$>$) } \\
{\tt for } & {\tt reduction($<$operadores$>$: $<$lista\_de\_variaveis$>$)} \\ \hline \hline
\textbf{ Diretivas de Sincronização} & \textbf{Funções da Biblioteca} $<$omp.h$>$ \\ \hline
{\tt critical } & {\tt omp\_get\_thread\_num() } \\
{\tt ~ } & {\tt omp\_get\_num\_threads() } \\ \hline
\end{tabular}
\end{table}
\end{frame}