setCores {awsMethods} | R Documentation |
The function sets the number of cores used in openMP parallelization in part of the Fortran code.
setCores(n, reprt = TRUE)
n |
number of cores to use. If |
reprt |
Logical, is |
The number of cores is restricted to integers between 1 (default) and the number of available cores.
The function returns the number of cores in use.
This function is a slightly modified version of function setCores in package spMC version 0.2.2 written by Luca Sartore <drwolf85@gmail.com>
Felix Anker (anker@wias-berlin.de)
## 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)