ViennaCL - The Vienna Computing Library  1.5.0
Data Fields
packed_cl_uint Struct Reference

Helper class for packing four cl_uint numbers into a uint4 type for access inside an OpenCL kernel. More...

#include <kernel.hpp>

Data Fields

cl_uint start
 Starting value of the integer stride.
cl_uint stride
 Increment between integers.
cl_uint size
 Number of values in the stride.
cl_uint internal_size
 Internal length of the buffer. Might be larger than 'size' due to padding.

Detailed Description

Helper class for packing four cl_uint numbers into a uint4 type for access inside an OpenCL kernel.

Since the primary use is for dealing with ranges and strides, the four members are termed accordingly.


Field Documentation

cl_uint internal_size

Internal length of the buffer. Might be larger than 'size' due to padding.

cl_uint size

Number of values in the stride.

cl_uint start

Starting value of the integer stride.

cl_uint stride

Increment between integers.


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