HCC
HCC is a single-source, C/C++ compiler for heterogeneous computing. It's optimized with HSA (http://www.hsafoundation.com/).
|
Represents a set of related indices subdivided into 1-, 2-, or 3-dimensional tiles. More...
#include <amp.h>
Public Member Functions | |
tiled_index (const tiled_index< D0 > &o) | |
Copy constructor. More... | |
operator const index< 1 > () const | |
Implicit conversion operator that converts a tiled_index<D0,D1,D2> into an index<N>. More... | |
tiled_index (const index< 1 > &g) | |
Public Attributes | |
const index< 1 > | global |
An index of rank 1, 2, or 3 that represents the global index within an extent. | |
const index< 1 > | local |
An index of rank 1, 2, or 3 that represents the relative index within the current tile of a tiled extent. | |
const index< 1 > | tile |
An index of rank 1, 2, or 3 that represents the coordinates of the current tile of a tiled extent. | |
const index< 1 > | tile_origin |
An index of rank 1, 2, or 3 that represents the global coordinates of the origin of the current tile within a tiled extent. | |
const tile_barrier | barrier |
An object which represents a barrier within the current tile of threads. | |
Static Public Attributes | |
static const int | rank = 3 |
A static member of tiled_index that contains the rank of this tiled extent, and is either 1, 2, or 3 depending on the specialization used. | |
static const int | tile_dim0 = D0 |
These constants allow access to the template arguments of tiled_index. | |
Friends | |
template<int D, typename K > | |
void | parallel_for_each (const accelerator_view &, tiled_extent< D >, const K &) |
const Concurrency::extent< 1 > | tile_extent |
Returns an instance of an extent<N> that captures the values of the tiled_index template arguments D0, D1, and D2. More... | |
Concurrency::extent< 1 > | get_tile_extent () const |
Returns an instance of an extent<N> that captures the values of the tiled_index template arguments D0, D1, and D2. More... | |
Represents a set of related indices subdivided into 1-, 2-, or 3-dimensional tiles.
D0,D1,D2 | The length of the tile in each specified dimension, where D0 is the most-significant dimension and D2 is the least-significant. |
|
inline |
Copy constructor.
Constructs a new tiled_index from the supplied argument "other".
[in] | other | An object of type tiled_index from which to initialize this. |
|
inline |
Returns an instance of an extent<N> that captures the values of the tiled_index template arguments D0, D1, and D2.
For example:
|
inline |
Implicit conversion operator that converts a tiled_index<D0,D1,D2> into an index<N>.
The implicit conversion converts to the .global index member.
const Concurrency::extent<1> Concurrency::tiled_index< D0, 0, 0 >::tile_extent |
Returns an instance of an extent<N> that captures the values of the tiled_index template arguments D0, D1, and D2.
For example: