gpuMagic.setOptions {gpuMagic} | R 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 A named argument which name is the same as the name of the options. 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')

[Package gpuMagic version 1.10.0 Index]