lazyarray-threads: Set Number of Threads for Lazy Arrays

lazyarray-threadsR Documentation

Set Number of Threads for Lazy Arrays

Description

Set number of threads used by 'OpenMP' for both lazyarray and fstcore packages.

Usage

set_lazy_threads(
  nr_of_threads = getOption("lazyarray.nthreads"),
  reset_after_fork = NULL
)

get_lazy_threads(max = FALSE)

Arguments

nr_of_threads

number of CPU cores to use, or NULL to stay unchanged, default is getOption('lazyarray.nthreads')

reset_after_fork

whether to reset after forked process

max

whether return maximum available threads

Value

Number of cores currently used.

See Also

threads_fstlib


dipterix/lazyarray documentation built on June 30, 2023, 6:30 a.m.