OpenMP-Examples/Examples_array_sections.tex
2020-06-26 07:54:45 -07:00

39 lines
1.0 KiB
TeX

\pagebreak
\section{Array Sections in Device Constructs}
\label{sec:array_sections}
The following examples show the usage of array sections in \code{map} clauses
on \code{target} and \code{target} \code{data} constructs.
This example shows the invalid usage of two separate sections of the same array
inside of a \code{target} construct.
\cexample[4.0]{array_sections}{1}
\ffreeexample[4.0]{array_sections}{1}
\pagebreak
This example shows the invalid usage of two separate sections of the same array
inside of a \code{target} construct.
\cexample[4.0]{array_sections}{2}
\ffreeexample[4.0]{array_sections}{2}
\pagebreak
This example shows the valid usage of two separate sections of the same array inside
of a \code{target} construct.
\cexample[4.0]{array_sections}{3}
\ffreeexample[4.0]{array_sections}{3}
\pagebreak
This example shows the valid usage of a wholly contained array section of an already
mapped array section inside of a \code{target} construct.
\cexample[4.0]{array_sections}{4}
\ffreeexample[4.0]{array_sections}{4}