Learn R Programming

rkeops (version 1.4.2.2)

set_rkeops_option: Set up a specific compile or runtime options of rkeops in R global options scope

Description

The function set_rkeops_option allows to modify the value of a single specific rkeops options in R global options scope.

Usage

set_rkeops_option(option, value)

Value

None

Arguments

option

string, name of the option to set up (see Details).

value

whatever value to assign to the chosen option (see Details).

Author

Ghislain Durif

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().

See Also

set_rkeops_options(), compile_options(), runtime_options(), use_gpu(), compile4gpu(), get_rkeops_options()

Examples

Run this code
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

Run the code above in your browser using DataLab