mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
36 lines
973 B
TeX
36 lines
973 B
TeX
\pagebreak
|
|
\chapter{Array Sections in Device Constructs}
|
|
\label{chap: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 seperate sections of the same array
|
|
inside of a \code{target} construct.
|
|
|
|
\cexample{array_sections}{1c}
|
|
|
|
\fexample{array_sections}{1f}
|
|
|
|
This example shows the invalid usage of two separate sections of the same array
|
|
inside of a \code{target} construct.
|
|
|
|
\cexample{array_sections}{2c}
|
|
|
|
\fexample{array_sections}{2f}
|
|
|
|
This example shows the valid usage of two separate sections of the same array inside
|
|
of a \code{target} construct.
|
|
|
|
\cexample{array_sections}{3c}
|
|
|
|
\fexample{array_sections}{3f}
|
|
|
|
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}{4c}
|
|
|
|
\fexample{array_sections}{4f}
|
|
|