setDevice: Get and set the current device.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/00general.R

Description

On systems with multiple GPUs the current device may be set or investigated with these functions.

Usage

1
2
3

Arguments

device

Device number to set the device to

force

Force reset of the tuning parameters even if they have already been set

silent

Prints a message if TRUE

...

Arguments to set the tuning parameters. It's not a good idea to mess with these at this point.

Details

All operations are performed on the current GPU device only. An error will be returned if the user attempts to perform an operation on a device that is not the current device. Details of the available devices can be obtained with the 'listDevices' function.

Value

setDevice returns TRUE. getDevice returns the current device number. listDevices returns a data.frame with information about the available devices.

Author(s)

Nathan Morris

See Also

device, gdup

Examples

1
2
3
listDevices()
getDevice()
#setDevice(1)

njm18/gmatrix documentation built on May 23, 2019, 7:07 p.m.