Description Usage Arguments Value Author(s) References Examples
These functions allow us to determine the number of GPU devices available on the current machine and also all of their charateristics or properties.
1 2 3 | getNumDevices()
getDeviceProperties(num = 1L)
cuDeviceGetAttributes(dev = 1L)
|
num,dev |
the identifier for the device. Generally, we identify a
device by its number, starting at 1. Alternatively, we can use an
object of class |
getNumDevices
returns the number of available devices.
getDeviceProperties
returns an object of class
cudaDeviceProp
. This is an S4 class with numerous slots
describing many aspects of the GPU.
Duncan Temple Lang
1 2 | n = getNumDevices()
sapply(1:n, getDeviceProperties)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.