getGpuId: Discover the Id of the current GPU device

Description Usage Value Examples

View source: R/getGpuId.R

Description

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.

Usage

1

Value

The function returns a single integer indicating the id of the GPU device currently selected to carry out computation according to the CUDA driver.

Examples

1

gputools documentation built on May 30, 2017, 1:52 a.m.

Related to getGpuId in gputools...