openmp: Set or get the number of OpenMP threads

Description Usage Arguments Details Value

Description

Set or get the number of threads used by OpenMP for parallel regions.

Usage

1
2
3

Arguments

num

The desired number of threads

Details

These functions mostly exist because of the CRAN check, which only allows 1 - 2 threads. As there is a per-thread memory requirement for RUVIII_C and RUVIII_C_Varying, these functions can also be useful for controlling memory usage. However in that case, setting environment variable OMP_NUM_THREADS also works.

Value

In the case of omp_get_num_threads, the current number of threads.


RUVIIIC documentation built on April 23, 2021, 5:07 p.m.

Related to openmp in RUVIIIC...