Description Usage Value Author(s) References See Also Examples
This function determines the total and free memory available on the current GPU.
1 |
A numeric vector of length 3 with elements giving the total number of bytes free, total number of available bytes and the percentage free.
Duncan Temple Lang
1 2 3 4 5 | if(getNumDevices() > 0) {
cuGetContext(TRUE)
cuMemInfo()[3] # percentage free
cuMemInfo()[1:2] # totals
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.