Description Usage Value Examples
Queries the CUDA driver for the GPU device currently assigned to this thread. This is the id of the device that will be used for computation. If you wish to use a different device, use the chooseGpu function.
1 | getGpuId()
|
The function returns a single integer indicating the id of the GPU device currently selected to carry out computation according to the CUDA driver.
1 | getGpuId()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.