setCores {awsMethods} | R Documentation |
Set the number of cores to use for openMP.
Description
The function sets the number of cores used in openMP parallelization in part of the Fortran code.
Usage
setCores(n, reprt = TRUE)
Arguments
n |
number of cores to use. If |
reprt |
Logical, is |
Details
The number of cores is restricted to integers between 1 (default) and the number of available cores.
Value
The function returns the number of cores in use.
Note
This function is a slightly modified version of function setCores in package spMC version 0.2.2 written by Luca Sartore <drwolf85@gmail.com>
Author(s)
Felix Anker (anker@wias-berlin.de)
Examples
## Report number of cores available and in use
setCores()
## Set number of cores used in openMP to minimum of
## 12 and number of available cores
setCores(12)
[Package awsMethods version 1.1-1 Index]