Skip to contents

rkeops user-defined operators requires specific options to control their behavior at runtime (precision, verbosity, use of GPU, debug flag). Their current values can be printed with get_rkeops_options(). See def_rkeops_options() for more details about these options.

Usage

get_rkeops_options(option = NULL)

Arguments

option

string character or vector of string character, specific option name(s) among "backend", "device_id", "precision", "verbosity", "debug" to get the corresponding option current values. Default is NULL and all option values are returned.

Value

a scalar value if only one option was specified or a list with specified rkeops current options values.

Author

Ghislain Durif

Examples

set_rkeops_options()
get_rkeops_options()
#> $backend
#> [1] "CPU"
#> 
#> $device_id
#> [1] -1
#> 
#> $precision
#> [1] "float32"
#> 
#> $verbosity
#> [1] 0
#> 
#> $debug
#> [1] 0
#> 
#> attr(,"class")
#> [1] "rkeops_options"
get_rkeops_options("backend")
#> [1] "CPU"
get_rkeops_options(c("backend", "precision"))
#> $backend
#> [1] "CPU"
#> 
#> $precision
#> [1] "float32"
#>