Vax C90-EL SERIES Service Manual Page 102

  • Download
  • Add to my manuals
  • Print
  • Page
    / 216
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 101
Cray Standard C/C++ Reference Manual
and can cause loops inside and outside parallel regions to not vectorize. Avoid
shared stack variables, where possible, because of this problem.
3.8.13.2 Context Arguments
The following tasking directive arguments are used to indicate the tasking
context for variables referenced in the parallel region. Tasking context is an
attribute that determines how the different processors access a variable in a
parallel region.
If the private, shared,orvalue argument is used, at least one variable must
be declared in the corresponding list. For these arguments, variable names follow
the argument in a comma-separated list enclosed in parentheses.
A
rgument Description
private The private argument indicates those variables
in the parallel region that are to have private
context.
shared The shared argument indicates those variables in
the parallel region that are to have shared context.
value The value argument indicates those variables in
the parallel region that are to have value context;
that is, each task has its own initialized private
copy of these variables.
defaults The defaults argument indicates that all
variables referenced in the parallel region but not
listed in the private, shared,orvalue lists
are to have their tasking context determined by
using the default rules. The private, shared,
and value arguments can be used in conjunction
with the defaults argument to override the
default rules for specified variables.
3.8.13.3 Work Distribution Arguments
The following arguments specify the work distribution policy for the iterations of
a tasked loop and can be used only with the taskloop directive.
When no explicit scheduling policy is specified, the compiler is free to choose
an appropriate work distribution. A loop that is both tasked and vectorized is
scheduled with a sufficiently large chunking factor to allow efficient vector
execution.
82 S217936
Page view 101
1 2 ... 97 98 99 100 101 102 103 104 105 106 107 ... 215 216

Comments to this Manuals

No comments