Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tc::Block Class Reference

Specializing CudaDim to differentiate between Block and Grid sizes. More...

#include <mapping_options.h>

Inheritance diagram for tc::Block:
Collaboration diagram for tc::Block:

Public Member Functions

 Block ()=default
 
 Block (const CudaDimView &view)
 
 Block (const CudaDimProto &proto)
 
 Block (std::initializer_list< uint64_t > il)
 
 Block (std::vector< uint64_t > il)
 
- Public Member Functions inherited from tc::CudaDim
 CudaDim ()
 
 CudaDim (const CudaDim &cudaDim)
 
 CudaDim (const CudaDimProto &proto)
 
 CudaDim (const CudaDimView &view)
 
 CudaDim (std::initializer_list< uint64_t > il)
 
 CudaDim (std::vector< uint64_t > il)
 
 CudaDim (uint64_t x, uint64_t y=CudaDimView::defaultDim, uint64_t z=CudaDimView::defaultDim)
 
- Public Member Functions inherited from tc::CudaDimView
 CudaDimView (const CudaDimView &)=default
 Construct a view that refers to a protocol buffers message. More...
 
 CudaDimView (CudaDimProto &buf)
 
size_t size () const
 Number of values held. More...
 
std::vector< uint64_t > extractVector () const
 Return a copy of values as std::vector. More...
 
std::array< uint64_t, 3 > extractDefaultedArray () const
 Return a copy of values as std::array of size 3 padded with defaultDim. More...
 
ValueAccessor< uint64_t > operator[] (size_t i)
 
uint64_t operator[] (size_t i) const
 Access the values positionally (x=0, y=1, z=2). More...
 
CudaDimViewoperator= (const CudaDimView &view)
 Assign the values from another view. More...
 
bool operator== (const CudaDimView &view) const
 Compare the values with those from another view. More...
 
bool operator!= (const CudaDimView &view) const
 
std::string toCommaSeparatedString () const
 Conversion to string and output operators. More...
 

Additional Inherited Members

- Public Attributes inherited from tc::CudaDimView
CudaDimProto & proto
 
- Static Public Attributes inherited from tc::CudaDimView
static const uint64_t defaultDim = 1
 

Detailed Description

Specializing CudaDim to differentiate between Block and Grid sizes.

Constructor & Destructor Documentation

tc::Block::Block ( )
default
tc::Block::Block ( const CudaDimView view)
inline
tc::Block::Block ( const CudaDimProto &  proto)
inline
tc::Block::Block ( std::initializer_list< uint64_t >  il)
inline
tc::Block::Block ( std::vector< uint64_t >  il)
inline

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