Learn R Programming

rkeops (version 2.2.2)

rkeops_use_cpu: Enable GPU-computing when calling user-defined operators

Description

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

Usage

rkeops_use_cpu(ncore = NULL)

Value

None

Arguments

ncore

integer, number of cores used by rkeops user-defined operators to run computations in CPU mode. If ncore = 0 then all available cores are used. Default value is NULL which correspond to 0.

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 rkeops_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

rkeops_use_gpu(), set_rkeops_options()

Examples

Run this code
if (FALSE) {
rkeops_use_cpu()
}

Run the code above in your browser using DataLab