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

Reference to existing buffer in GPU main memory. More...

#include <devicememoryreference.hpp>

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

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DeviceMemoryReference (const Size< Dim > &_size, Type *_buffer)
 Constructor.
 DeviceMemoryReference (const Layout< Type, Dim > &layout, Type *_buffer)
 Constructor.
 DeviceMemoryReference (DeviceMemory< Type, Dim > &data, const Size< Dim > &ofs, const Size< Dim > &_size)
 Constructor based on existing device memory.

Protected Member Functions

 DeviceMemoryReference ()
 Default constructor.


Detailed Description

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

Reference to existing buffer in GPU main memory.

This class can be used to apply the CUDA Templates methods to memory regions managed by other libraries.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
_size requested size
_buffer pointer to GPU memory

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

Constructor.

Parameters:
layout requested layout
_buffer pointer to GPU memory

template<class Type, unsigned Dim>
Cuda::DeviceMemoryReference< Type, Dim >::DeviceMemoryReference ( DeviceMemory< Type, Dim > &  data,
const Size< Dim > &  ofs,
const Size< Dim > &  _size 
) [inline]

Constructor based on existing device memory.

Will keep any region of interest valid, by determining 'intersection' of regions.

Parameters:
data existing device memroy
ofs offset to new region
_size size of new region

template<class Type, unsigned Dim>
Cuda::DeviceMemoryReference< Type, Dim >::DeviceMemoryReference (  )  [inline, protected]

Default constructor.

This is only for subclasses which know how to correctly set up the data pointer.


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

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