detectCores {Parallel} R Documentation

detectCores: Detect the Number of CPU Cores

Description


Attempt to detect the number of CPU cores on the current host.

Usage

detectCores();

Arguments

Details

This attempts to detect the number of available CPU cores. It has methods To Do so For Linux, macOS, FreeBSD, OpenBSD, Solaris, Irix And Windows. detectCores(True) could be tried On other Unix-alike systems.

Authors

snowFall

Value

An integer, NA if the answer is unknown. Exactly what this represents Is OS-dependent: where possible by Default it counts logical (e.g., hyperthreaded) CPUs And Not physical cores Or packages.

clr value class

Examples


[Package Parallel version 1.0.0.0 Index]