![]() |
imate
C++/CUDA Reference
|
Properties of GPU devices. More...
#include <device_properties.h>
Public Member Functions | |
| DeviceProperties () | |
| Constructor. More... | |
| ~DeviceProperties () | |
| Destructor. More... | |
| void | deallocate_members () |
| Deallocates the member data. More... | |
| void | set_num_devices (int num_devices_) |
| Sets the number of devices and allocates memory for member data with the size of devices. More... | |
Public Attributes | |
| int | num_devices |
| int * | num_multiprocessors |
| int * | num_threads_per_multiprocessor |
Properties of GPU devices.
Definition at line 23 of file device_properties.h.
| DeviceProperties::DeviceProperties | ( | ) |
Constructor.
Definition at line 27 of file device_properties.cu.
| DeviceProperties::~DeviceProperties | ( | ) |
Destructor.
Definition at line 42 of file device_properties.cu.
References deallocate_members().

| void DeviceProperties::deallocate_members | ( | ) |
Deallocates the member data.
Definition at line 55 of file device_properties.cu.
References num_multiprocessors, and num_threads_per_multiprocessor.
Referenced by set_num_devices(), and ~DeviceProperties().

| void DeviceProperties::set_num_devices | ( | int | num_devices_ | ) |
Sets the number of devices and allocates memory for member data with the size of devices.
| [in] | num_devices_ | Number of gpu devices. |
Definition at line 81 of file device_properties.cu.
References deallocate_members(), num_devices, num_multiprocessors, and num_threads_per_multiprocessor.
Referenced by query_device().


| int DeviceProperties::num_devices |
Definition at line 32 of file device_properties.h.
Referenced by set_num_devices().
| int* DeviceProperties::num_multiprocessors |
Definition at line 33 of file device_properties.h.
Referenced by deallocate_members(), query_device(), and set_num_devices().
| int* DeviceProperties::num_threads_per_multiprocessor |
Definition at line 34 of file device_properties.h.
Referenced by deallocate_members(), query_device(), and set_num_devices().