runtime_options: Define a list of user-defined options used at runtime in...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/default_options.R

Description

When calling user-defined operators, rkeops requires runtime options that control how the computations are done (memory management, data partition for parallelization, GPU device if relevant).

The function runtime_options returns a list of class rkeops_runtime_options with default values for the corresponding options (see Details).

Usage

1
runtime_options(tagCpuGpu = 0, tag1D2D = 0, tagHostDevice = 0, device_id = 0)

Arguments

tagCpuGpu

integer, indicator for CPU or GPU computations (see Details). Default value is 0.

tag1D2D

integer, indicator regarding data partitioning for parallelization (see Details). Default value is 0.

tagHostDevice

integer, indicator regarding the data location (see Details). Default value is 0.

device_id

integer, id of GPU device on the machine (see Details). Default value is 0.

Details

The aforementioned runtime options are the following:

Note: Default options are set up when loading rkeops. To reset rkeops options to default, you should use the function set_rkeops_options(). To set up a particular option, you should use the function set_rkeops_option().

Some wrappers are available to enable some compilation options, see use_cpu(), use_gpu().

Value

a list (of class rkeops_runtime_options) with the following elements:

tagCpuGpu

integer, indicator for CPU or GPU computations (see Details).

tag1D2D

integer, indicator regarding data partitioning for parallelization (see Details).

device_id

integer, id of GPU device on the machine (see Details).

Author(s)

Ghislain Durif

See Also

default_runtime_options(), set_rkeops_options(), set_rkeops_option(), use_cpu(), use_gpu()

Examples

1
2
runtime_options(tagCpuGpu = 0, tag1D2D = 0, 
                tagHostDevice=0, device_id = 0)

rkeops documentation built on Feb. 17, 2021, 5:08 p.m.