Skip to contents

Reports the logical and physical cores of the computer, and the number of parallel runs that n_cores = "auto" would use (physical cores minus one, at least 1). Several runs share the memory and the disk: on a laptop, or with large data sets, fewer runs than cores can be faster.

Usage

nm_cores(verbose = TRUE)

Arguments

verbose

Print the result.

Value

Invisibly, a list with logical, physical and auto.

Examples

nm_cores()
#> Cores: 4 logical, 4 physical. n_cores = "auto" would use 3 parallel runs.