Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/common-set_options.R
The function set_rkeops_option
allows to modify the value of a single
specific rkeops
options in R
global options scope.
1 | set_rkeops_option(option, value)
|
option |
string, name of the option to set up (see Details). |
value |
whatever value to assign to the chosen option (see Details). |
rkeops
uses two sets of options: compile options (see
compile_options()
) and runtime options (see
runtime_options()
). These options define the behavior of rkeops
when compiling or when calling user-defined operators.
With the function set_rkeops_option
, you can set up 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
with a value that you provide in input.
To know which values are allowed for which options, you can check
compile_options()
and runtime_options()
.
None
Ghislain Durif
set_rkeops_options()
, compile_options()
,
runtime_options()
, use_gpu()
, compile4gpu()
,
get_rkeops_options()
1 2 3 4 5 | library(rkeops)
# to enable GPU computing
set_rkeops_option("tagCpuGpu", 1)
# to set up the GPU id used for computations
set_rkeops_option("device_id", 0L) # integer value
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.