mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
39 lines
1013 B
TeX
39 lines
1013 B
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{array_sections}{1}
|
|
|
|
\ffreeexample{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{array_sections}{2}
|
|
|
|
\ffreeexample{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{array_sections}{3}
|
|
|
|
\ffreeexample{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{array_sections}{4}
|
|
|
|
\ffreeexample{array_sections}{4}
|
|
|