HCC
HCC is a single-source, C/C++ compiler for heterogeneous computing. It's optimized with HSA (http://www.hsafoundation.com/).
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
hc::tiled_index< 1 > Class Template Reference

Represents a set of related indices subdivided into 1-, 2-, or 3-dimensional tiles. More...

#include <hc.hpp>

Collaboration diagram for hc::tiled_index< 1 >:
Collaboration graph

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 &)
 

Detailed Description

template<>
class hc::tiled_index< 1 >

Represents a set of related indices subdivided into 1-, 2-, or 3-dimensional tiles.

This class is 1D specialization of tiled_index.

Constructor & Destructor Documentation

hc::tiled_index< 1 >::tiled_index ( const tiled_index< 1 > &  other)
inline

Copy constructor.

Constructs a new tiled_index from the supplied argument "other".

Parameters
[in]otherAn object of type tiled_index from which to initialize this.

Member Function Documentation

hc::tiled_index< 1 >::operator const index< 1 > ( ) const
inline

Implicit conversion operator that converts a tiled_index<N> into an index<N>.

The implicit conversion converts to the .global index member.


The documentation for this class was generated from the following file: