Skip to contents

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

Usage

rkeops_use_cpu(ncore = NULL)

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.

Value

None

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.

Author

Ghislain Durif

Examples

if (FALSE) {
rkeops_use_cpu()
}