cuda-kat
CUDA kernel author's tools
Public Member Functions | Public Attributes | List of all members
kat::dimensions_t Struct Reference

A richer (kind-of-a-)wrapper for CUDA's dim3 class, used to specify dimensions for blocks and grid (up to 3 dimensions). More...

Public Member Functions

constexpr KAT_FHD dimensions_t (unsigned x_=1, unsigned y_=1, unsigned z_=1) noexcept
 
constexpr KAT_FHD dimensions_t (uint3 v) noexcept
 
constexpr KAT_FHD dimensions_t (dim3 dims) noexcept
 
constexpr KAT_FHD operator uint3 (void) const noexcept
 
KAT_FHD operator dim3 (void) const noexcept
 
constexpr KAT_FHD unsigned volume () const noexcept
 
constexpr KAT_FHD bool empty () const noexcept
 
constexpr KAT_FHD unsigned dimensionality () const noexcept
 The number of actual dimensions (i.e. More...
 

Public Attributes

grid_dimension_t x
 
grid_dimension_t y
 
grid_dimension_t z
 

Detailed Description

A richer (kind-of-a-)wrapper for CUDA's dim3 class, used to specify dimensions for blocks and grid (up to 3 dimensions).

Note
same as cuda::dimensions_t from the cuda-api-wrappers library...
Todo:
consider templating this on the number of dimensions.

Member Function Documentation

§ dimensionality()

constexpr KAT_FHD unsigned kat::dimensions_t::dimensionality ( ) const
inlinenoexcept

The number of actual dimensions (i.e.

dimensions/axes with more than a single value)


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