#include <devicememorylinear.hpp>
Public Member Functions | |
DeviceMemoryLinear () | |
Default constructor. | |
DeviceMemoryLinear (const Size< Dim > &_size) | |
Constructor. | |
DeviceMemoryLinear (const Layout< Type, Dim > &layout) | |
Constructor. | |
void | alloc () |
Allocate GPU memory. | |
void | alloc (const Size< Dim > &_size) |
Allocate GPU memory. |
No padding is performed, i.e., efficiency of access may be suboptimal.
Cuda::DeviceMemoryLinear< Type, Dim >::DeviceMemoryLinear | ( | const Size< Dim > & | _size | ) | [inline] |
Constructor.
_size | requested size of memory block. |
Cuda::DeviceMemoryLinear< Type, Dim >::DeviceMemoryLinear | ( | const Layout< Type, Dim > & | layout | ) | [inline] |
Constructor.
layout | requested layout of memory block. |
void Cuda::DeviceMemoryLinear< Type, Dim >::alloc | ( | const Size< Dim > & | _size | ) | [inline] |