#include <devicememorypitched.hpp>
Public Member Functions | |
DeviceMemoryPitched () | |
Default constructor. | |
DeviceMemoryPitched (const Size< Dim > &_size) | |
Constructor. | |
DeviceMemoryPitched (const Layout< Type, Dim > &layout) | |
Constructor. | |
void | alloc () |
Allocate GPU memory. | |
void | alloc (const Size< Dim > &_size) |
Allocate GPU memory. | |
void | initMem (int val, bool sync=true) |
Initializes the GPU memory with the value val. |
Appropriate padding is added to maximize access performance.
Cuda::DeviceMemoryPitched< Type, Dim >::DeviceMemoryPitched | ( | const Size< Dim > & | _size | ) | [inline] |
Constructor.
_size | requested size of memory block |
Cuda::DeviceMemoryPitched< Type, Dim >::DeviceMemoryPitched | ( | const Layout< Type, Dim > & | layout | ) | [inline] |
Constructor.
layout | requested layout of memory block |
void Cuda::DeviceMemoryPitched< Type, Dim >::alloc | ( | const Size< Dim > & | _size | ) | [inline] |
void Cuda::DeviceMemoryPitched< Type, Dim >::initMem | ( | int | val, | |
bool | sync = true | |||
) | [inline] |
Initializes the GPU memory with the value val.
Unfortunately only integer values are supported by the cudaMemset functions.
Reimplemented from Cuda::DeviceMemory< Type, Dim >.