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.
hasOMP()setOMPThreads(nthreads)
setSITMOSeeds(seed)
number of OpenMP threads to be used.
number between 0 and 1 used to set the seeds of the random number generators in each threads.
Function hasOMP
returns TRUE/FALSE if the system
supports/does not support openMP.
Functions setOMPThreads
and setSITMOSeeds
do not return any value.
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
.