SystemInfo
-
class SystemInfo
Public Functions
-
size_t num_devices() const
Returns the number of GPUs in the system.
-
const DeviceInfo &device(DeviceId id) const
Return information on the device with the given identifier.
-
const DeviceInfo &device_by_ordinal(GPUdevice ordinal) const
Find the device that has the given device ordinal.
-
std::vector<ResourceId> resources() const
Return a list of the available processors in the system.
-
MemoryId affinity_memory(ResourceId proc_id) const
Returns the highest affinity memory for the given processor.
-
MemoryId affinity_memory(DeviceId device_id) const
Returns the highest affinity memory for the given device.
-
bool is_memory_accessible(MemoryId memory_id, ResourceId proc_id) const
Checks if the given processor can access the given memory.
Public Static Functions
-
static ResourceId affinity_processor(MemoryId memory_id)
Returns the processor that has the highest affinity for accessing the given memory.
-
size_t num_devices() const