maxthreads: Get the Maximum Number of Threads available on your device

Description Usage Details Value Note Author(s) References See Also Examples

View source: R/maxthreads.R

Description

The function returns the maximum number of threads that you can use with multi-core functions.

Usage

1

Details

The number returned is the number of Threads, not the number of Physical Cores (it is twice the number of physical cores of CPU uses Hyper Threading)

Value

An integer with the number of threads available on the device.

Note

If you want to always use the maximum number of Threads, you can simply put Inf as input of the number of threads instead of the output of this function.

Author(s)

Nicolas Baradel - PGM Solutions

References

https://en.wikipedia.org/wiki/Thread_(computing)

See Also

http://pgm-solutions.com/packages

Examples

1

rpgm documentation built on March 18, 2018, 2:24 p.m.