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

Representation of linear GPU memory. More...

#include <devicememorylinear.hpp>

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

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

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

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

Representation of linear GPU memory.

No padding is performed, i.e., efficiency of access may be suboptimal.


Constructor & Destructor Documentation

template<class Type, unsigned Dim>
Cuda::DeviceMemoryLinear< Type, Dim >::DeviceMemoryLinear ( const Size< Dim > &  _size  )  [inline]

Constructor.

Parameters:
_size requested size of memory block.

template<class Type, unsigned Dim>
Cuda::DeviceMemoryLinear< Type, Dim >::DeviceMemoryLinear ( const Layout< Type, Dim > &  layout  )  [inline]

Constructor.

Parameters:
layout requested layout of memory block.


Member Function Documentation

template<class Type, unsigned Dim>
void Cuda::DeviceMemoryLinear< Type, Dim >::alloc ( const Size< Dim > &  _size  )  [inline]

Allocate GPU memory.

size to be allocated

Reimplemented from Cuda::Storage< Type, Dim >.


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

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