Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/common-get_options.R
The function get_rkeops_option
returns the current value of a specific
rkeops
option (in R
global options scope) provided as input.
1 | get_rkeops_option(option)
|
option |
string, name of the options to set up (see Details). |
rkeops
global options includes two lists defining options used at
compilation of user-defined operators or at runtime. These two list
contains specific informations (see compile_options()
and
runtime_options()
respectively, in particular for default values).
With the function get_rkeops_option
, you get the value of a specific
rkeops
option among:
rkeops
compile options: rkeops_dir(not recommended),
build_dir,
src_dir(not recommended),
precision,
verbosity,
use_cuda_if_possible,
col_major(not recommended),
debug'
rkeops
runtime options: tagCpuGpu
, tag1D2D
, tagHostDevice
,
device_id
These options are set with the functions set_rkeops_options()
and
set_rkeops_option()
. To know which values are allowed for which
options, you can check compile_options()
and
runtime_options()
.
the value of the requested option (see Details).
Ghislain Durif
get_rkeops_options()
, compile_options()
,
runtime_options()
, set_rkeops_options()
,
set_rkeops_option()
1 2 3 | library(rkeops)
# to get the GPU id used for computations
get_rkeops_option("device_id")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.