Cudapp::Device Class Reference

#include <CudappDevice.h>

List of all members.

Public Member Functions

bool AllocateMemory ()
 Memory Management.
 Device (unsigned int deviceNumber)
void ExitThread ()
int GetClockRate () const
const cudaDeviceProp & GetCudaDeviceProperty () const
int GetDeviceNumber () const
int GetMajor () const
const intGetMaxGridSize () const
 [3]
const intGetMaxThreadsDim () const
int GetMaxThreadsPerBlock () const
size_t GetMemPitch () const
int GetMinor () const
const charGetName () const
int GetRegsPerBlock () const
size_t GetSharedMemPerBlock () const
size_t GetTextureAlignment () const
size_t GetTotalConstMem () const
 [3]
size_t GetTotalGlobalMem () const
int GetWrapSize () const
bool IsInitialized () const
 Device Information.
void MakeActive ()
virtual void PrintSelf (std::ostream &os) const
void SetDeviceNumber (unsigned int deviceNumber)
void SynchronizeThread ()
virtual ~Device ()

Protected Member Functions

void LoadDeviceProperties ()

Protected Attributes

int DeviceNumber
cudaDeviceProp DeviceProp
bool Initialized

Constructor & Destructor Documentation

Cudapp::Device::Device ( unsigned int  deviceNumber  ) 
Cudapp::Device::~Device (  )  [virtual]

Member Function Documentation

bool Cudapp::Device::AllocateMemory (  ) 

Memory Management.

TODO Remove this function. just for trial

void Cudapp::Device::ExitThread (  ) 
int Cudapp::Device::GetClockRate (  )  const [inline]

the clock rate in kiloherz of the CUDA device

Referenced by PrintSelf().

const cudaDeviceProp& Cudapp::Device::GetCudaDeviceProperty (  )  const [inline]

the entire device properties of this CUDA device as cudaGetDeviceProperties(this->GetDeviceNumber()) would return it

int Cudapp::Device::GetDeviceNumber (  )  const [inline]

Referenced by PrintSelf().

int Cudapp::Device::GetMajor (  )  const [inline]

The major revision number of the CUDA device

Referenced by PrintSelf().

const int* Cudapp::Device::GetMaxGridSize (  )  const [inline]

[3]

Returns:
the maximum sizes of each dimension of a grid for this CUDA device as int[3]

Referenced by PrintSelf().

const int* Cudapp::Device::GetMaxThreadsDim (  )  const [inline]
Returns:
the maximum sizes of each dimension of a block for the CUDA device as int[3]

Referenced by PrintSelf().

int Cudapp::Device::GetMaxThreadsPerBlock (  )  const [inline]
Returns:
the maximum numbers of threads that can be run in parallel on this CUDA device

Referenced by PrintSelf().

size_t Cudapp::Device::GetMemPitch (  )  const [inline]
Returns:
the memory pitch of the CUDA device

Referenced by PrintSelf().

int Cudapp::Device::GetMinor (  )  const [inline]
Returns:
the minor revision number of the CUDA device

Referenced by PrintSelf().

const char* Cudapp::Device::GetName (  )  const [inline]

Wrapped Functions to retrieve all Information about a CUDA card ///

Returns:
the name of the CUDA device

Referenced by PrintSelf().

int Cudapp::Device::GetRegsPerBlock (  )  const [inline]

the registers per block of the CUDA device

Referenced by PrintSelf().

size_t Cudapp::Device::GetSharedMemPerBlock (  )  const [inline]
Returns:
the shared memory per block of the CUDA device

Referenced by PrintSelf().

size_t Cudapp::Device::GetTextureAlignment (  )  const [inline]
Returns:
the texture alignment of the CUDA device

Referenced by PrintSelf().

size_t Cudapp::Device::GetTotalConstMem (  )  const [inline]

[3]

Returns:
the tatal amount (in bytes) of constant memory of this CUDA device

Referenced by PrintSelf().

size_t Cudapp::Device::GetTotalGlobalMem (  )  const [inline]
Returns:
the global memory size of the CUDA device

Referenced by PrintSelf().

int Cudapp::Device::GetWrapSize (  )  const [inline]
Returns:
the wrap size of the CUDA device

Referenced by PrintSelf().

bool Cudapp::Device::IsInitialized (  )  const [inline]

Device Information.

void Cudapp::Device::LoadDeviceProperties (  )  [protected]

References DeviceNumber, and DeviceProp.

Referenced by SetDeviceNumber().

void Cudapp::Device::MakeActive (  ) 

References DeviceNumber, and Initialized.

void Cudapp::Device::PrintSelf ( std::ostream &  os  )  const [virtual]
void Cudapp::Device::SetDeviceNumber ( unsigned int  deviceNumber  ) 

References DeviceNumber, and LoadDeviceProperties().

Referenced by Device().

void Cudapp::Device::SynchronizeThread (  ) 

Member Data Documentation

cudaDeviceProp Cudapp::Device::DeviceProp [protected]

Referenced by Device(), and LoadDeviceProperties().

Referenced by Device(), and MakeActive().


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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1