Learn R Programming

rkeops (version 1.4.2.2)

use_cpu: Disable GPU-computing when calling user-defined operators

Description

Set up rkeops runtime options to use CPU computing when calling user-defined operators.

Usage

use_cpu(ncore = 0)

Value

None

Arguments

ncore

integer, number of cores used by rkeops user-defined operators to run computations in CPU mode. Default value is 0 and all available cores are used.

Author

Ghislain Durif

Details

Note 1: By default, rkeops user-defined operators run computations on CPU (even for GPU-compiled operators), thus calling the function use_gpu() is mandatory to run computations on GPU.

Note 2: By default, in CPU mode, rkeops user-defined operators run computations on all available cores for parallel computing. To control, the number of cores used by rkeops user-defined operators, you can used the input parameter ncore.

See Also

compile4cpu(), compile4gpu(), use_gpu()

Examples

Run this code
library(rkeops)
use_cpu()

Run the code above in your browser using DataLab