#include <devicememory.hpp>
Public Member Functions | |
| KernelData () | |
| Default constructor. | |
| KernelData (const DeviceMemory< Type, Dim > &mem) | |
| Constructor. | |
Public Attributes | |
| Type * | data |
| Data pointer. | |
| size_t | size [Dim] |
| Data size. | |
| size_t | stride [Dim] |
| Data stride. | |
| Cuda::DeviceMemory< Type, Dim >::KernelData::KernelData | ( | const DeviceMemory< Type, Dim > & | mem | ) | [inline] |
Constructor.
This constructor is invoked when a kernel expecting a KernelData argument is called with an instance of DeviceMemory, i.e., you don't have to construct the KernelData object explicitly. There is no distinction between const and non-const data.
| mem | reference to device memory object |
1.5.6