powered by
The function sets the number of cores used in openMP parallelization in part of the Fortran code.
setCores(n, reprt = TRUE)
number of cores to use. If n is missing the actual number of cores in use is returned.
n
Logical, is reprt==TRUE the number of cores in use is reported.
reprt==TRUE
The function returns the number of cores in use.
The number of cores is restricted to integers between 1 (default) and the number of available cores.
# NOT RUN { ## 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) # }
Run the code above in your browser using DataLab