Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

omp

Support for parallel computation


Description

The functions can be used

  • to check if the current system supports the openMP standard;

  • to control the number of used cores;

  • to set the seeds of the random number generators.

Usage

hasOMP()

setOMPThreads(nthreads)

setSITMOSeeds(seed)

Arguments

nthreads

number of OpenMP threads to be used.

seed

number between 0 and 1 used to set the seeds of the random number generators in each threads.

Details

Each openMP thread (or the single thread used on systems where openMP is not supported) uses a separate sitmo random number generator. See sitmo-package.

Value

Function hasOMP returns TRUE/FALSE if the system supports/does not support openMP.

Functions setOMPThreads and setSITMOSeeds do not return any value.

Note

When the package is loaded, the following code is automatically executed

  • if (hasOMP()) setOMPThreads(parallel::detectCores())

  • setSITMOSeeds(runif(1))

Author(s)

Giovanna Capizzi and Guido Masarotto


CautiousLearning

Control Charts with Guaranteed In-Control Performance and Cautious Parameters Learning

v1.0.1
MIT + file LICENSE
Authors
Giovanna Capizzi and Guido Masarotto
Initial release
2019-06-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.