#include <hostmemorylocked.hpp>


Public Member Functions | |
| HostMemoryLocked () | |
| Default constructor. | |
| HostMemoryLocked (const Size< Dim > &_size, unsigned flags=cudaHostAllocDefault) | |
| Constructor. | |
| HostMemoryLocked (const Layout< Type, Dim > &layout, unsigned flags=cudaHostAllocDefault) | |
| Constructor. | |
| ~HostMemoryLocked () | |
| Destructor. | |
| void | alloc () |
| Allocate page-locked CPU memory. | |
| void | alloc (unsigned flags) |
| Allocate page-locked CPU memory. | |
| void | free () |
| Free page-locked CPU memory. | |
This can be used for DMA transfers between CPU and GPU memory.
| Cuda::HostMemoryLocked< Type, Dim >::HostMemoryLocked | ( | const Size< Dim > & | _size, | |
| unsigned | flags = cudaHostAllocDefault | |||
| ) | [inline] |
Constructor.
| _size | requested size of memory block |
| Cuda::HostMemoryLocked< Type, Dim >::HostMemoryLocked | ( | const Layout< Type, Dim > & | layout, | |
| unsigned | flags = cudaHostAllocDefault | |||
| ) | [inline] |
Constructor.
| layout | requested layout of memory block |
| void Cuda::HostMemoryLocked< Type, Dim >::alloc | ( | unsigned | flags | ) | [inline] |
Allocate page-locked CPU memory.
| flags | see CUDA Programming Guide section 3.2.5 |
1.5.6