gpuMagic.setOptions: Set the openCL options

Description Usage Arguments Value See Also Examples

View source: R/gpuFunctions.R

Description

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

Usage

1

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

1
2
3
4
5
6
7
8
9
#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')

gpuMagic documentation built on Nov. 8, 2020, 5:15 p.m.