set_lidr_threads

0th

Percentile

Set or get number of threads that lidR should use

Set and get number of threads to be used in lidR functions that are parallelized with OpenMP. Default value 0 means to utilize all CPU available. get_lidr_threads() returns the number of threads that will be used. This affects lidR package but also the data.table package by internally calling setDTthreads because several functions of lidR rely on data.table but it does not change R itself or other packages using OpenMP.

Usage
set_lidr_threads(threads)

get_lidr_threads()

Arguments
threads

An integer >= 0. Default 0 means use all CPU available and leave the operating system to multi task.

See Also

lidR-parallelism

Aliases
  • set_lidr_threads
  • get_lidr_threads
Documentation reproduced from package lidR, version 2.1.0, License: GPL-3

Community examples

Looks like there are no examples yet.