gpuMagic.getOptions: Get the openCL options

View source: R/gpuFunctions.R

gpuMagic.getOptionsR Documentation

Get the openCL options

Description

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

Usage

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

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

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