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 <hc.hpp>
Public Member Functions | |
tiled_index (const tiled_index &other) __CPU__ __HC__ | |
Copy constructor. More... | |
operator const index< 1 > () const __CPU__ __HC__ | |
Implicit conversion operator that converts a tiled_index<N> into an index<N>. More... | |
tiled_index (const index< 1 > &g) __CPU__ __HC__ | |
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. | |
const index< 1 > | tile_dim |
An index of rank 1, 2, 3 that represents the size of the tile. | |
Static Public Attributes | |
static const int | rank = 1 |
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. | |
Friends | |
template<typename Kernel > | |
completion_future | parallel_for_each (const accelerator_view &, const tiled_extent< 1 > &, const Kernel &) |
Represents a set of related indices subdivided into 1-, 2-, or 3-dimensional tiles.
This class is 1D specialization of tiled_index.
|
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 |
Implicit conversion operator that converts a tiled_index<N> into an index<N>.
The implicit conversion converts to the .global index member.