gpuMagic.setOptions: Set the openCL options

View source: R/gpuFunctions.R

gpuMagic.setOptionsR Documentation

Set the openCL options

Description

The functions set the computing precision when compile the GPU code and the number of workers in a computing group.

Usage

gpuMagic.setOptions(...)

Arguments

...

There are two possible ways to set the options. You can either provide

  1. A named argument which name is the same as the name of the options.

  2. An R object obtaining from gpuMagic.getOptions()

to change the options.

Value

No return value

See Also

gpuMagic.getOptions() for the name of the options.

Examples

#Get all the available options
opt=gpuMagic.getOptions()
#change the default float type
opt$default.float='float'
#set the options
gpuMagic.setOptions(opt)

#set the options(Alternative way)
gpuMagic.setOptions(default.float='float')

Jiefei-Wang/gpuMagic documentation built on March 27, 2022, 5:23 a.m.