Cuda::HostMemoryLocked< Type, Dim > Class Template Reference

Representation of page-locked CPU memory. More...

#include <hostmemorylocked.hpp>

Inheritance diagram for Cuda::HostMemoryLocked< Type, Dim >:

Inheritance graph
[legend]
Collaboration diagram for Cuda::HostMemoryLocked< Type, Dim >:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

template<class Type, unsigned Dim>
class Cuda::HostMemoryLocked< Type, Dim >

Representation of page-locked CPU memory.

This can be used for DMA transfers between CPU and GPU memory.


Constructor & Destructor Documentation

template<class Type, unsigned Dim>
Cuda::HostMemoryLocked< Type, Dim >::HostMemoryLocked ( const Size< Dim > &  _size,
unsigned  flags = cudaHostAllocDefault 
) [inline]

Constructor.

Parameters:
_size requested size of memory block

template<class Type, unsigned Dim>
Cuda::HostMemoryLocked< Type, Dim >::HostMemoryLocked ( const Layout< Type, Dim > &  layout,
unsigned  flags = cudaHostAllocDefault 
) [inline]

Constructor.

Parameters:
layout requested layout of memory block


Member Function Documentation

template<class Type, unsigned Dim>
void Cuda::HostMemoryLocked< Type, Dim >::alloc ( unsigned  flags  )  [inline]

Allocate page-locked CPU memory.

Parameters:
flags see CUDA Programming Guide section 3.2.5


The documentation for this class was generated from the following file:

Generated on Sun Sep 13 00:55:19 2009 for cudatemplates by  doxygen 1.5.6