parallel-options {ravetools} | R Documentation |
Set or get thread options
Description
Set or get thread options
Usage
detect_threads()
ravetools_threads(n_threads = "auto", stack_size = "auto")
Arguments
n_threads |
number of threads to set |
stack_size |
Stack size (in bytes) to use for worker threads. The
default used for |
Value
detect_threads
returns an integer of default threads that
is determined by the number of CPU
cores; ravetools_threads
returns nothing.
Examples
detect_threads()
ravetools_threads(n_threads = 2)
[Package ravetools version 0.1.7 Index]