18#ifndef itkOpenCLWorkSize_h
19#define itkOpenCLWorkSize_h
98 this->m_Sizes[0] = size;
100 this->m_Sizes[2] = 1;
105 OpenCLSize(
const std::size_t width,
const std::size_t height)
108 this->m_Sizes[0] = width;
109 this->m_Sizes[1] = height;
110 this->m_Sizes[2] = 1;
114 OpenCLSize(
const std::size_t width,
const std::size_t height,
const std::size_t depth)
117 this->m_Sizes[0] = width;
118 this->m_Sizes[1] = height;
119 this->m_Sizes[2] = depth;
128 this->m_Sizes[0] = size[0];
129 this->m_Sizes[1] = 1;
130 this->m_Sizes[2] = 1;
139 this->m_Sizes[0] = size[0];
140 this->m_Sizes[1] = size[1];
141 this->m_Sizes[2] = 1;
149 this->m_Sizes[0] = size[0];
150 this->m_Sizes[1] = size[1];
151 this->m_Sizes[2] = size[2];
165 return this->m_Sizes[0];
172 return this->m_Sizes[1];
179 return this->m_Sizes[2];
186 return this->m_Sizes;
195 std::size_t &
operator[](
const std::size_t dim) {
return this->m_Sizes[dim]; }
200 std::size_t
operator[](
const std::size_t dim)
const {
return this->m_Sizes[dim]; }
223 std::size_t m_Sizes[3];
237template <
typename charT,
typename traits>
238inline std::basic_ostream<charT, traits> &
245 strm <<
"OpenCLSize(null)";
249 strm <<
"OpenCLSize(" << size.
GetWidth() <<
')';
The OpenCLDevice class represents the collection of OpenCL devices to be used by the host.
The OpenCLSize class defines the size of an item of work for an OpenCL kernel.
const std::vcl_size_t * GetSizes() const
OpenCLSize(const SizeType2D &size)
OpenCLSize(const std::vcl_size_t width, const std::vcl_size_t height, const std::vcl_size_t depth)
OpenCLSize(const SizeType1D &size)
static OpenCLSize GetLocalWorkSize(const OpenCLDevice &device)
static OpenCLSize GetLocalWorkSize(const OpenCLSize &maxWorkItemSize, const std::vcl_size_t maxItemsPerGroup)
OpenCLSize(const std::vcl_size_t size)
OpenCLSize RoundTo(const OpenCLSize &size) const
OpenCLSize & operator=(const Null &)
std::vcl_size_t GetDepth() const
cl_uint GetDimension() const
std::vcl_size_t & operator[](const std::vcl_size_t dim)
OpenCLSize(const std::vcl_size_t width, const std::vcl_size_t height)
std::vcl_size_t GetHeight() const
OpenCLSize(const SizeType3D &size)
std::vcl_size_t operator[](const std::vcl_size_t dim) const
std::vcl_size_t GetWidth() const
bool ITKOpenCL_EXPORT operator==(const OpenCLCommandQueue &lhs, const OpenCLCommandQueue &rhs)
bool ITKOpenCL_EXPORT operator!=(const OpenCLCommandQueue &lhs, const OpenCLCommandQueue &rhs)
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &strm, const OpenCLCommandQueue &queue)