Cuda::DeviceMemory< Type, Dim >::KernelData Struct Reference

A stripped-down version of the layout data structure suitable for passing to a CUDA kernel. More...

#include <devicememory.hpp>

List of all members.

Public Member Functions

 KernelData ()
 Default constructor.
 KernelData (const DeviceMemory< Type, Dim > &mem)
 Constructor.

Public Attributes

Type * data
 Data pointer.
size_t size [Dim]
 Data size.
size_t stride [Dim]
 Data stride.


Detailed Description

template<class Type, unsigned Dim>
struct Cuda::DeviceMemory< Type, Dim >::KernelData

A stripped-down version of the layout data structure suitable for passing to a CUDA kernel.

Constructor & Destructor Documentation

template<class Type, unsigned Dim>
Cuda::DeviceMemory< Type, Dim >::KernelData::KernelData ( const DeviceMemory< Type, Dim > &  mem  )  [inline]

Constructor.

This constructor is invoked when a kernel expecting a KernelData argument is called with an instance of DeviceMemory, i.e., you don't have to construct the KernelData object explicitly. There is no distinction between const and non-const data.

Parameters:
mem reference to device memory object


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

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