gpuMagic.getOptions: Get the openCL options

Description Usage Arguments Details Value Examples

View source: R/gpuFunctions.R

Description

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

Usage

1
gpuMagic.getOptions(opt = "all")

Arguments

opt

The options that the function will return. It can be either 'all' or a vector of the option names.

Details

The fields default.float, default.int and default.index.type are used to control the computing precision. When transferring data from R to GPU, if the data in R has a numeric or double storage mode, default.float will be used to convert data type. Similarly, If the data has an Integer storage model. default.int will be used.

default.index.type controls the variable type for the for loop index, variable dimension etc.

default.thread.num is used to control the number of workers in a group in openCL. It is not expected to be changed unless you know what you are doing.

Value

A list of the options

Examples

1
2
3
#Get all the available options
opt=gpuMagic.getOptions()
opt

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