#include <DeviceInfo.h>
Public Member Functions | |
| DeviceInfo (const DeviceIndex index, const std::string &name) | |
| DeviceIndex | GetIndex () const |
| const std::string & | GetName () const |
| const std::string & | GetVendor () const |
| const std::string & | GetExtensions () const |
| DeviceType | GetDeviceType () const |
| std::string | GetDeviceTypeString () const |
| uint64_t | GetGlobalMemorySize () const |
| uint64_t | GetLocalMemorySize () const |
| uint64_t | GetMaxConstantBufferSize () const |
| uint64_t | GetMaxWorkGroupSize () const |
| uint32_t | GetMaxComputeUnits () const |
| uint32_t | GetCudaComputeCapabilityMajor () const |
| uint32_t | GetCudaComputeCapabilityMinor () const |
| std::string | GetString () const |
| void | SetVendor (const std::string &vendor) |
| void | SetExtensions (const std::string &extensions) |
| void | SetDeviceType (const DeviceType deviceType) |
| void | SetGlobalMemorySize (const uint64_t globalMemorySize) |
| void | SetLocalMemorySize (const uint64_t localMemorySize) |
| void | SetMaxConstantBufferSize (const uint64_t maxConstantBufferSize) |
| void | SetMaxWorkGroupSize (const uint64_t maxWorkGroupSize) |
| void | SetMaxComputeUnits (const uint32_t maxComputeUnits) |
| void | SetCudaComputeCapabilityMajor (const uint32_t capabilityMajor) |
| void | SetCudaComputeCapabilityMinor (const uint32_t capabilityMinor) |
Class which holds information about a compute API device.
|
explicit |
Constructor which creates new device info object.
| index | Index of device assigned by KTT framework. |
| name | Name of device retrieved from compute API. |
| uint32_t ktt::DeviceInfo::GetCudaComputeCapabilityMajor | ( | ) | const |
Getter for CUDA compute capability major.
| uint32_t ktt::DeviceInfo::GetCudaComputeCapabilityMinor | ( | ) | const |
Getter for CUDA compute capability minor.
| DeviceType ktt::DeviceInfo::GetDeviceType | ( | ) | const |
Getter for type of device. See DeviceType for more information.
| std::string ktt::DeviceInfo::GetDeviceTypeString | ( | ) | const |
Getter for type of device converted to string. See DeviceType for more information.
| const std::string & ktt::DeviceInfo::GetExtensions | ( | ) | const |
Getter for list of supported device extensions retrieved from compute API.
| uint64_t ktt::DeviceInfo::GetGlobalMemorySize | ( | ) | const |
Getter for global memory size of device retrieved from compute API.
| DeviceIndex ktt::DeviceInfo::GetIndex | ( | ) | const |
Getter for index of device assigned by KTT framework.
| uint64_t ktt::DeviceInfo::GetLocalMemorySize | ( | ) | const |
Getter for local memory (shared memory in CUDA) size of device retrieved from compute API.
| uint32_t ktt::DeviceInfo::GetMaxComputeUnits | ( | ) | const |
Getter for maximum parallel compute units (multiprocessors in CUDA) count of device retrieved from compute API.
| uint64_t ktt::DeviceInfo::GetMaxConstantBufferSize | ( | ) | const |
Getter for constant memory size of device retrieved from compute API.
| uint64_t ktt::DeviceInfo::GetMaxWorkGroupSize | ( | ) | const |
Getter for maximum work-group (thread block in CUDA) size of device retrieved from compute API.
| const std::string & ktt::DeviceInfo::GetName | ( | ) | const |
Getter for name of device retrieved from compute API.
| std::string ktt::DeviceInfo::GetString | ( | ) | const |
Converts device info to string.
| const std::string & ktt::DeviceInfo::GetVendor | ( | ) | const |
Getter for name of device vendor retrieved from compute API.
| void ktt::DeviceInfo::SetCudaComputeCapabilityMajor | ( | const uint32_t | capabilityMajor | ) |
Setter for CUDA compute capability major.
| capabilityMajor | Major compute capability of NVIDIA GPUs with CUDA compute API, zero otherwise. |
| void ktt::DeviceInfo::SetCudaComputeCapabilityMinor | ( | const uint32_t | capabilityMinor | ) |
Setter for CUDA compute capability minor.
| capabilityMinor | Minor compute capability of NVIDIA GPUs with CUDA compute API, zero otherwise. |
| void ktt::DeviceInfo::SetDeviceType | ( | const DeviceType | deviceType | ) |
Setter for type of device.
| deviceType | Type of device. |
| void ktt::DeviceInfo::SetExtensions | ( | const std::string & | extensions | ) |
Setter for list of supported device extensions.
| extensions | List of supported device extensions. |
| void ktt::DeviceInfo::SetGlobalMemorySize | ( | const uint64_t | globalMemorySize | ) |
Setter for global memory size of device.
| globalMemorySize | Global memory size of device. |
| void ktt::DeviceInfo::SetLocalMemorySize | ( | const uint64_t | localMemorySize | ) |
Setter for local memory size of device.
| localMemorySize | Local memory size of device. |
| void ktt::DeviceInfo::SetMaxComputeUnits | ( | const uint32_t | maxComputeUnits | ) |
Setter for maximum compute units count of device.
| maxComputeUnits | Maximum compute units count of device. |
| void ktt::DeviceInfo::SetMaxConstantBufferSize | ( | const uint64_t | maxConstantBufferSize | ) |
Setter for constant memory size of device.
| maxConstantBufferSize | Constant memory size of device. |
| void ktt::DeviceInfo::SetMaxWorkGroupSize | ( | const uint64_t | maxWorkGroupSize | ) |
Setter for maximum work-group size of device.
| maxWorkGroupSize | Maximum work-group size of device. |
| void ktt::DeviceInfo::SetVendor | ( | const std::string & | vendor | ) |
Setter for name of device vendor.
| vendor | Name of device vendor. |