gpuMagic.getOptions | R Documentation |
The functions gets the computing precision when compile the GPU code and the number of workers in a computing group.
gpuMagic.getOptions(opt = "all")
opt |
The options that the function will return. It can be either 'all' or a vector of the option names. |
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.
A list of the options
#Get all the available options opt=gpuMagic.getOptions() opt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.