File tree 3 files changed +39
-2
lines changed
3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 44
44
% These parameters, and the documentclass options,
45
45
% are about document identification and overall formatting.
46
46
\newcommand {\cplexts }{$ CPLEXTS$ }
47
- \renewcommand {\extrahead }{2014-08-13 }
47
+ \renewcommand {\extrahead }{2014-08-21 }
48
48
\standard {\cplexts }
49
49
\yearofedition {2016}
50
50
\languageofedition {(E)}
Original file line number Diff line number Diff line change 33
33
34
34
\definition {execution agent}{
35
35
entity, such as an OS thread,
36
- that may perform work in parallel with other execution agents%
36
+ that may execute a thread of execution
37
+ in parallel with other execution agents%
37
38
\footnote {EN:
38
39
Adapted from the C++ standard.
39
40
}
Original file line number Diff line number Diff line change 39
39
\pfxdefn {workload_unbalanced}
40
40
\end {ttfamily }
41
41
42
+ \pnum
43
+ The
44
+ \pfxdefn {affinity_t}
45
+ type is an enumerated type
46
+ with at least the following enumeration constants,
47
+ each with nonzero value:
48
+
49
+ \begin {ttfamily }
50
+ \pfxdefn {affinity_close}\\
51
+ \pfxdefn {affinity_spread}
52
+ \end {ttfamily }
53
+
42
54
\pnum
43
55
When an object of type
44
56
\pfx {loop_params_t}
191
203
or
192
204
\pfx {schedule_guided}.
193
205
\end {note }
206
+
207
+ \sclause {The \tcode {affinity} parameter}
208
+ \ssclause *{Synopsis}
209
+ \begin {ttfamily }
210
+ \# include <cplex.h>\\
211
+ void \pfxdefn {set_affinity}(\pfx {loop_params_t} *hints, \pfx {affinity_t} kind);\\
212
+ \pfx {affinity_t} \pfx {get_affinity}(\pfx {loop_params_t} *hints);
213
+ \end {ttfamily }
214
+
215
+ \ssclause *{Description}
216
+ \pnum
217
+ The
218
+ \pfx {set_affinity}
219
+ macro sets to
220
+ \tcode {kind}
221
+ the recommended affinity
222
+ for a parallel loop associated with the object pointed to by
223
+ \tcode {hints}.
224
+
225
+ \pnum
226
+ The affinity of a loop indicates whether the loop benefits
227
+ from being executed by co-located hardware threads,
228
+ or whether performance is likely to improve if the software threads
229
+ are spread over multiple cores.
You can’t perform that action at this time.
0 commit comments