imate
C++/CUDA Reference
|
#include "./device_properties.h"
Go to the source code of this file.
Functions | |
void | query_device (DeviceProperties &device_properties) |
Queries GPU device information, such as the number of devices, number of multiprocessors, and the number of threads per each multiprocessor. More... | |
void query_device | ( | DeviceProperties & | device_properties | ) |
Queries GPU device information, such as the number of devices, number of multiprocessors, and the number of threads per each multiprocessor.
[out] | device_properties | A struct to be filled with the number of devices, threads and multiprocessors. |
Definition at line 31 of file query_device.cu.
References cudaGetDeviceCount(), cudaGetDeviceProperties(), DeviceProperties::num_multiprocessors, DeviceProperties::num_threads_per_multiprocessor, and DeviceProperties::set_num_devices().