#include <CudappDevice.h>
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 int * | GetMaxGridSize () const |
| [3] | |
| const int * | GetMaxThreadsDim () const |
| int | GetMaxThreadsPerBlock () const |
| size_t | GetMemPitch () const |
| int | GetMinor () const |
| const char * | GetName () 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 |
| Cudapp::Device::Device | ( | unsigned int | deviceNumber | ) |
References DeviceProp, Initialized, and SetDeviceNumber().
| Cudapp::Device::~Device | ( | ) | [virtual] |
| 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]
Referenced by PrintSelf().
| const int* Cudapp::Device::GetMaxThreadsDim | ( | ) | const [inline] |
Referenced by PrintSelf().
| int Cudapp::Device::GetMaxThreadsPerBlock | ( | ) | const [inline] |
Referenced by PrintSelf().
| size_t Cudapp::Device::GetMemPitch | ( | ) | const [inline] |
Referenced by PrintSelf().
| int Cudapp::Device::GetMinor | ( | ) | const [inline] |
Referenced by PrintSelf().
| const char* Cudapp::Device::GetName | ( | ) | const [inline] |
Wrapped Functions to retrieve all Information about a CUDA card ///
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] |
Referenced by PrintSelf().
| size_t Cudapp::Device::GetTextureAlignment | ( | ) | const [inline] |
Referenced by PrintSelf().
| size_t Cudapp::Device::GetTotalConstMem | ( | ) | const [inline] |
[3]
Referenced by PrintSelf().
| size_t Cudapp::Device::GetTotalGlobalMem | ( | ) | const [inline] |
Referenced by PrintSelf().
| int Cudapp::Device::GetWrapSize | ( | ) | const [inline] |
Referenced by PrintSelf().
| 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] |
References GetClockRate(), GetDeviceNumber(), GetMajor(), GetMaxGridSize(), GetMaxThreadsDim(), GetMaxThreadsPerBlock(), GetMemPitch(), GetMinor(), GetName(), GetRegsPerBlock(), GetSharedMemPerBlock(), GetTextureAlignment(), GetTotalConstMem(), GetTotalGlobalMem(), and GetWrapSize().
Referenced by Cudapp::operator<<().
| void Cudapp::Device::SetDeviceNumber | ( | unsigned int | deviceNumber | ) |
References DeviceNumber, and LoadDeviceProperties().
Referenced by Device().
| void Cudapp::Device::SynchronizeThread | ( | ) |
int Cudapp::Device::DeviceNumber [protected] |
Referenced by LoadDeviceProperties(), MakeActive(), and SetDeviceNumber().
cudaDeviceProp Cudapp::Device::DeviceProp [protected] |
Referenced by Device(), and LoadDeviceProperties().
bool Cudapp::Device::Initialized [protected] |
Referenced by Device(), and MakeActive().
1.6.1