This is a helper wrapper around the multi-gpu data blocks owned by a worker. It's design is NOT final. Its so written this way to get something concrete in a short span of time.
More...
#include <data.hpp>
template<typename Type>
struct MLCommon::Matrix::Data< Type >
This is a helper wrapper around the multi-gpu data blocks owned by a worker. It's design is NOT final. Its so written this way to get something concrete in a short span of time.
- Todo:
- add support for custom allocators
◆ Data() [1/2]
◆ Data() [2/2]
◆ numElements()
Return the number of elements of Type in ptr.
◆ ptr
actual data block. This is just a linearly laid out buffer of all blocks owned by this worker
◆ totalSize
total size (in bytes) of this buffer. In future, this will be passed to the dealloc function underneath
The documentation for this struct was generated from the following file: