forked from OpenMP/Examples
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDeprecated_Features.tex
More file actions
281 lines (265 loc) · 10.5 KB
/
Deprecated_Features.tex
File metadata and controls
281 lines (265 loc) · 10.5 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
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
\cchapter{Feature Deprecations and Updates in Examples}{deprecated_features}
\label{chap:deprecated_features}
\label{sec:deprecated_features}
\index{deprecated features}
Deprecation of features began in OpenMP 5.0.
Examples that use a deprecated feature have been updated with an equivalent
replacement feature.
Table~\ref{tab:Deprecated Features} summarizes deprecated features and
their replacements in each version. Affected examples are updated
accordingly and listed in Section~\ref{sec:Updated Examples}.
\nolinenumbers
\renewcommand{\arraystretch}{1.4}
\tablefirsthead{%
\hline
\textbf{Version} & \textbf{Deprecated Feature} & \textbf{Replacement}\\
\hline\\[-3.5ex]
}
\tablehead{%
\multicolumn{2}{l}{\small\slshape table continued from previous page}\\
\hline
\textbf{Version} & \textbf{Deprecated Feature} & \textbf{Replacement}\\
\hline\\[-3ex]
}
\tabletail{%
\hline\\[-4ex]
\multicolumn{2}{l}{\small\slshape table continued on next page}\\
}
\tablelasttail{\hline\\[-2ex]}
\tablecaption{Deprecated Features and Their Replacements\label{tab:Deprecated Features}}
\begin{supertabular}{p{0.4in} p{2.3in} p{2.2in}}
5.2 & \scode{default} clause on metadirectives
& \scode{otherwise} clause \\
5.2 & delimited \scode{declare}~\scode{target} directive for C/C++
& \scode{begin}~\scode{declare}~\scode{target} directive \\
5.2 & \scode{to} clause on \scode{declare}~\scode{target} directive
& \scode{enter} clause \\
5.2 & non-argument \scode{destroy} clause on \scode{depobj} construct
& \scode{destroy(}\plc{argument}\code{)} \\
5.2 & \scode{allocate} construct for Fortran \scode{ALLOCATE} statements
& \scode{allocators} construct \\
5.2 & \scode{depend} clause on \scode{ordered} construct
& \scode{doacross} clause \\
5.2 & \scode{linear(}\plc{modifier(list): linear-step}\code{)} clause
& \scode{linear(}\plc{list:}~\scode{step(}\plc{linear-step}\scode{)}\plc{, modifier}\scode{)} clause \\
\hline
5.1 & \scode{master} construct
& \scode{masked} construct \\
5.1 & \scode{master} affinity policy
& \scode{primary} affinity policy \\
\hline
5.0 & \scode{omp_lock_hint_*} constants
& \scode{omp_sync_hint_*} constants \\[2pt]
\end{supertabular}
\linenumbers
These replacements appear in examples that illustrate, otherwise, earlier features.
When using a compiler that is compliant with a version prior to
the indicated version, the earlier form of an example for a previous
version is listed as a reference.
\newpage
\section{Updated Examples for Different Versions}
\label{sec:Updated Examples}
The following tables list the updated examples for different versions as
a result of feature deprecation. The \emph{Earlier Version} column of
the tables shows the version tag of the earlier version. It also shows
the prior name of an example when it has been renamed.
Table~\ref{tab:Updated Examples 5.2} lists the updated examples for OpenMP 5.2
in the Examples Document Version
\href{https://github.com/OpenMP/Examples/tree/v5.2}{5.2}.
The \emph{Earlier Version} column of the table lists the earlier version
tags of the examples that can be found in
the Examples Document Version
\href{https://github.com/OpenMP/Examples/tree/v5.1}{5.1}.
\index{clauses!default@\code{default}}
\index{clauses!otherwise@\code{otherwise}}
\index{clauses!to@\code{to}}
\index{clauses!enter@\code{enter}}
\index{clauses!depend@\code{depend}}
\index{clauses!doacross@\code{doacross}}
\index{clauses!linear@\code{linear}}
\index{clauses!destroy@\code{destroy}}
\index{default clause@\code{default} clause}
\index{otherwise clause@\code{otherwise} clause}
\index{to clause@\code{to} clause}
\index{enter clause@\code{enter} clause}
\index{depend clause@\code{depend} clause}
\index{doacross clause@\code{doacross} clause}
\index{linear clause@\code{linear} clause}
\index{destroy clause@\code{destroy} clause}
\index{directives!begin declare target@\code{begin}~\code{declare}~\code{target}}
\index{begin declare target directive@\code{begin}~\code{declare}~\code{target} directive}
\index{allocate construct@\code{allocate} construct}
\index{allocators construct@\code{allocators} construct}
\nolinenumbers
\renewcommand{\arraystretch}{1.0}
\tablefirsthead{%
\hline\\[-2ex]
\textbf{Example Name} & \textbf{Earlier Version} & \textbf{Feature Updated}
\\[2pt]
\hline\\[-2ex]
}
\tablehead{%
\multicolumn{2}{l}{\small\slshape table continued from previous page}\\[2pt]
\hline\\[-2ex]
\textbf{Example Name} & \textbf{Earlier Version} & \textbf{Feature Updated}\\[2pt]
\hline\\[-2ex]
}
\tabletail{%
\hline\\[-2.5ex]
\multicolumn{2}{l}{\small\slshape table continued on next page}\\
}
\tablelasttail{\hline\\[-1ex]}
\tablecaption{Updated Examples for Version 5.2\label{tab:Updated Examples 5.2}}
\begin{supertabular}{p{1.7in} p{1.2in} p{2.1in}}
\hexentry{error.1}[f90]{5.1} &
\scode{default} clause on metadirectives \\
\hexentry{metadirective.1}[f90]{5.0} &
replaced with \scode{otherwise} clause \\
\hexentry{metadirective.2}[f90]{5.0} & \\
\hexentry{metadirective.3}[f90]{5.0} & \\
\hexentry{metadirective.4}[f90]{5.1} & \\
\hexentry{target_ptr_map.4}{5.1} & \\
\hexentry{target_ptr_map.5}[f90]{5.1} & \\[2pt]
\hline\\[-2ex]
\hexentry[f90]{array_shaping.1}{5.0} &
\scode{to} clause on \scode{declare} \scode{target} \\
\hexentry{target_reverse_offload.7}{5.0} &
directive replaced with \scode{enter} clause \\
\hexentry{target_task_reduction.1}[f90]{5.1} & \\
\hexentry{target_task_reduction.2a}[f90]{5.0} & \\
\hexentry{target_task_reduction.2b}[f90]{5.1} &\\[2pt]
\hline\\[-2ex]
\hexentry{array_shaping.1}{5.0} &
delimited \scode{declare}~\scode{target} \\
\hexentry{async_target.1}{4.0} &
directive replaced with \\
\hexentry{async_target.2}{4.0} &
\scode{begin}~\scode{declare}~\scode{target} \\
\hexentry{declare_target.1}{4.0} &
directive for C/C++ \\
\hexentry[cpp]{declare_target.2c}{4.0} & \\
\hexentry{declare_target.3}{4.0} & \\
\hexentry{declare_target.4}{4.0} & \\
\hexentry{declare_target.5}{4.0} & \\
\hexentry{declare_target.6}{4.0} & \\
\hexentry{declare_variant.1}{5.0} & \\
\hexentry{device.1}{4.0} & \\
\hexentry{metadirective.3}{5.0} & \\
\hexentry{target_ptr_map.2}{5.0} & \\
\hexentry{target_ptr_map.3a}{5.0} & \\
\hexentry{target_ptr_map.3b}{5.0} & \\
\hexentry{target_struct_map.1}{5.0} & \\
\hexentry[cpp]{target_struct_map.2}{5.0} & \\
\hexentry{target_struct_map.3}{5.0} & \\
\hexentry{target_struct_map.4}{5.0} & \\[2pt]
\hline\\[-2ex]
\hexentry{doacross.1}[f90]{4.5} &
\scode{depend} clause on \scode{ordered} \\
\hexentry{doacross.2}[f90]{4.5} &
construct replaced with \scode{doacross} \\
\hexentry{doacross.3}[f90]{4.5} &
clause \\
\hexentry{doacross.4}[f90]{4.5} & \\[2pt]
\hline\\[-2ex]
\hexentry[cpp]{linear_modifier.1}[f90]{4.5} &
modifier syntax change for \scode{linear} \\
\hexentry[cpp]{linear_modifier.2}[f90]{4.5} &
clause on \scode{declare}~\scode{simd} directive \\
\hexentry{linear_modifier.3}[f90]{4.5} & \\[2pt]
\hline\\[-2ex]
\hexentry[f90]{allocators.1}{5.0} &
\scode{allocate} construct replaced with \scode{allocators} construct
for Fortran allocate statements \\[2pt]
\hline\\[-2ex]
\hexentry{depobj.1}[f90]{5.0} &
argument added to \scode{destroy} clause on \scode{depobj}
construct \\[2pt]
\end{supertabular}
\linenumbers
Table~\ref{tab:Updated Examples 5.1} lists the updated examples for OpenMP 5.1
in the Examples Document Version
\href{https://github.com/OpenMP/Examples/tree/v5.1}{5.1}.
The \emph{Earlier Version} column of the table lists the earlier version
tags and prior names of the examples that can be found in
the Examples Document Version
\href{https://github.com/OpenMP/Examples/tree/v5.0.1}{5.0.1}.
\index{affinity!master policy@\code{master} policy}
\index{affinity!primary policy@\code{primary} policy}
\index{constructs!master@\code{master}}
\index{constructs!masked@\code{masked}}
\index{master construct@\code{master} construct}
\index{masked construct@\code{masked} construct}
\nolinenumbers
\renewcommand{\arraystretch}{1.0}
\tablefirsthead{%
\hline\\[-2ex]
\textbf{Example Name} & \textbf{Earlier Version} & \textbf{Feature Updated}
\\[2pt]
\hline\\[-2ex]
}
\tablehead{%
\multicolumn{2}{l}{\small\slshape table continued from previous page}\\[2pt]
\hline\\[-2ex]
\textbf{Example Name} & \textbf{Earlier Version} & \textbf{Feature Updated}\\[2pt]
\hline\\[-2ex]
}
\tabletail{%
\hline\\[-2.5ex]
\multicolumn{2}{l}{\small\slshape table continued on next page}\\
}
\tablelasttail{\hline\\[-1ex]}
\tablecaption{Updated Examples for Version 5.1\label{tab:Updated Examples 5.1}}
\begin{supertabular}{p{1.8in} p{1.4in} p{1.8in}}
\hexentry{affinity.5}[f]{4.0} &
\scode{master} affinity policy replaced with \scode{primary} policy \\[2pt]
\hline\\[-2ex]
\hexentry{async_target.3}[f90]{5.0} &
\scode{master} construct replaced \\
\hexentry{cancellation.2}[f90]{4.0} &
with \scode{masked} construct \\
\hexentry{copyprivate.2}[f]{3.0} & \\
\hexentry[f]{fort_sa_private.5}{3.0} & \\
\hexentry{lock_owner.1}[f]{3.0} & \\
\hexmentry{masked.1}[f]{3.0}{master.1} & \\
\hexmentry{parallel_masked_taskloop.1}[f90]{5.0}{parallel_master_taskloop.1} &\\
\hexentry{reduction.6}[f]{3.0} & \\
\hexentry{target_task_reduction.1}[f90]{5.0} & \\
\hexentry{target_task_reduction.2b}[f90]{5.0} & \\
\hexentry{taskloop_simd_reduction.1}[f90]{5.0} & \\
\hexentry{task_detach.1}[f90]{5.0} & \\[2pt]
\end{supertabular}
\linenumbers
Table~\ref{tab:Updated Examples 5.0} lists the updated examples for OpenMP 5.0
in the Examples Document Version
\href{https://github.com/OpenMP/Examples/tree/v5.1}{5.1}.
The \emph{Earlier Version} column of the table lists the earlier version
tags of the examples that can be found in
the Examples Document Version
\href{https://github.com/OpenMP/Examples/tree/v5.0.1}{5.0.1}.
\nolinenumbers
\renewcommand{\arraystretch}{1.0}
\tablefirsthead{%
\hline\\[-2ex]
\textbf{Example Name} & \textbf{Earlier Version} & \textbf{Feature Updated}
\\[2pt]
\hline\\[-2ex]
}
\tablehead{%
\multicolumn{2}{l}{\small\slshape table continued from previous page}\\[2pt]
\hline\\[-2ex]
\textbf{Example Name} & \textbf{Earlier Version} & \textbf{Feature Updated}\\[2pt]
\hline\\[-2ex]
}
\tabletail{%
\hline\\[-2.5ex]
\multicolumn{2}{l}{\small\slshape table continued on next page}\\
}
\tablelasttail{\hline\\[-1ex]}
\tablecaption{Updated Examples for Version 5.0\label{tab:Updated Examples 5.0}}
\begin{supertabular}{p{1.6in} p{1.3in} p{2.1in}}
\hexentry{critical.2}[f]{4.5} &
\scode{omp_lock_hint_*} constants \\
\hexentry[cpp]{init_lock_with_hint.1}[f]{4.5} &
replaced with \scode{omp_sync_hint_*} constants \\[2pt]
\end{supertabular}
\linenumbers