Enable GPU-computing when calling user-defined operators
Source:R/rkeops_options.R
rkeops_use_cpu.RdSet up rkeops options to use CPU computing when calling
user-defined operators.
Arguments
- ncore
integer, number of cores used by
rkeopsuser-defined operators to run computations in CPU mode. Ifncore = 0then all available cores are used. Default value isNULLwhich correspond to0.
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.